/* site.css - Shared site styling.
 *
 * Base styles for applications built on the site layer. Application
 * stylesheets (toto.css, etc.) are loaded after this one.
 */

/*** Global font selection and page layout ***/

body {
    margin: 0px;
    padding: 0px;

    display: flex;
    flex-direction: column;
    overflow-y: hidden;
    height: 100vh;
    width: 100vw;

    font-family: Roboto,Helvetica,sans-serif;

    font-size: 14px;
    line-height: 1.2;
}

.dialog-background {
    position: fixed;
    z-index: 10;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.2);
}

dialog {
    z-index: 11;

    border: 1px solid #c0c0c0;

    top: 10%;

    box-shadow: 2px 1px 1px #e0e0e0;

    padding: 20px;

    width: 80%;
}

@media only screen and (min-width : 640px) {
    dialog {
        width: auto;
        max-width: 40%;
    }

}

dialog form {
    padding-top: 0px;
}

dialog input[type=text] {
    width: 100%;
}

dialog .cancel {
    position: absolute;

    top: 10px;
    right: 10px;
}

dialog textarea {
    width: 100%;
}

dialog .modal-controls {
    padding: 10px 0px 0px 0px;
    text-align: right;
}

dialog .modal-controls input {
    margin-left: 8px;
    margin-right: 0px;
}

dialog select {
    margin-left: 10px;
}

dialog p {
    padding-bottom: 12px;
}

.header {
    flex: 0;

    z-index: 2;

    color: #202020;

    padding: 10px;
}

.contents {
    flex: 1;

    background: white;

    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    padding: 1em;

    display: flex;
    flex-direction: column;
}

@media only screen and (max-width : 640px) {
    .contents {
        margin-bottom: 30px;
    }

}

.contents::-webkit-scrollbar {
    display: none;
}

.contents.with-sidebar {
    padding: 0em;
}

@media only screen and (min-width : 640px) {
    .contents.with-sidebar {
        padding-left: 271px;
    }

}

.footer {
    flex: 0 0 auto;

    background: white;

    color: #404040;

    text-align: center;
    font-style: italic;
}

.sidebar {
    z-index: 3;
    display: flex;
    flex-direction: column;
	position: absolute;

	top: 0;
    bottom: 0;
	left: -320px;
    width: 310px;

    background: white;

    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;

    box-shadow: 2px 1px 1px #e0e0e0;

    transform: translate3d( 0, 0, 0 );
}

.sidebar .scrollable {
    padding-bottom: 90px;
}

.sidebar.animated {
    transition: transform 0.25s ease-in-out;
}

.sidebar.menu-visible {
    transform: translate3d( 320px, 0, 0 );
}

@media only screen and (min-width : 640px) {
    .sidebar.menu-visible {
        transform: none;
    }

}

.sidebar::-webkit-scrollbar {
    display: none;
}

@media only screen and (min-width : 640px) {
    .sidebar {
        padding-top: 40px;
        z-index: 1;
        left: 0px;
        box-shadow: none;
        width: 260px;
    }

}

.close-menu {
    padding-right: 0.5em;
}

.sidebar-control {
    flex: 1;

    border: 0px;
    border-right: 5px solid #f0f0f0;
    margin-right: 2px;

    padding: 2px 8px;
    background: #f0f0f0;
    vertical-align: middle;
    min-height: 6em;
    height: 6em;
    line-height: 3em;
}

@media only screen and (min-width : 640px) {
    .sidebar-control {
        display: none;
    }

    .toggle-menu {
        display: none;
    }

}

/*** Fonts, Colors, and Tools ***/

A {
    text-decoration: none;
    color: blue;
}

.addr {
    font-family: Courier;
}

.dev-tool {
    margin: 1em;
    padding: 1em;
    border: 1px solid red;
}

.warning {
    color: red;
}

.hidden {
    display: none;
}

/*** Icons ***/

.icon-back-arrow {
    padding-left: 10px;
    padding-right: 5px;
    color: black;
}

.icon-edit {
    color: #000000;
}

.icon-black {
    color: black;
    font-weight: bold;
}

.icon-gray {
    color: #b0b0b0;
}

.icon-yellow {
    color: #ffd000;
}

.icon-pink {
    color: #ffcccc;
}

.icon-red {
    color: #ff0000;
}

.icon-blue {
    color: #0000ff;
}

.icon-yellow:hover {
    color: #ffe700;
}

.icon-bars {
    color: black;
    padding: 0.5em;
}

.icon-drag-handle {
    width: 10px;
}

.icon-sunset {
    color: #fcba03;
}

/*** Forms ***/

form {
    padding-top: 10px;
    padding-left: 10px;
    padding-right: 10px;
}

.submit-panel {
    text-align: center;
}

.submit-panel input {
    display: inline;
    width: auto;
    margin-bottom: 0px;
}

input[type=text], input[type=password] {
    border: none;
    background: #f0f0f0;
    padding: 6px;
    font-size: 14px;

    -webkit-border-radius: 4px;
    border-radius: 4px;
}

@media only screen and (min-width : 640px) {
    input[type=text], input[type=password] {
        padding: 4px;
    }

}

::placeholder {
    color: #c0c0c0;
    font-size: 13px;
}

input[type=submit] {
    padding: 0.5em 1em;
    background: #ccc;
    border: 1px solid #c0c0c0;
    cursor: pointer;
    -webkit-border-radius: 0px;
    border-radius: 0px;
    margin-right: 10px;
}

input[type=submit]:hover {
    background:#ddd;
}

input:focus {
    outline: none;
}

select {
    padding: 5px 10px;
    background:#ccc;
    cursor:pointer;

    border: 0px;
    border-radius: 0px;

    -webkit-border-radius: 0px;
}

select:hover {
    background:#ddd;
}

/*** Scrollable Column ***/

.scroll-column {
    display: flex;
    flex-direction: column;
    overflow-y: hidden;
    flex: 1;
}

.scroll-column .fixed {
    display: flex;
}

.scroll-column .scrollable {
    flex: 1;
    overflow-y: auto;
}

.scroll-column .scrollable.scrolled {
    box-shadow: inset 0 7px 9px -7px rgb(0 0 0 / 20%);
}

.scroll-column .scrollable.additional-content {
    box-shadow: inset 0 -7px 9px -7px rgb(0 0 0 / 20%);
}

.scroll-column .scrollable.scrolled.additional-content {
    box-shadow: inset 0 7px 9px -7px rgb(0 0 0 / 20%), inset 0 -7px 9px -7px rgb(0 0 0 / 20%);
}

.auth-form {
    width: auto;
}

@media only screen and (min-width : 640px) {
    .auth-form {
        width: 480px;
    }

}

.config-panel input[type=submit] {
    margin: 4px;
}

.config-panel input[type=checkbox] {
    width: 32px;
}

.config-panel input[type=hidden] {
    width: 32px;
}

.config-panel .verify-problem {
    margin-top: 8px;
}

.config-panel .data-row {
    margin-bottom: 8px;
}

.config-panel .verify-problem .verify-response {
    width: 64px;
    margin-left: 8px;
}

.header a.click {
    padding-left: 0.5em;
    padding-right: 0.5em;
}

@media only screen and (min-width : 640px) {
    .header .login-controls {
        float: right;
    }

}

.error-message {
    color: red;
    text-align: center;
    height: 30px;
}

.app-name {
    display: inline-block;
    margin-right: 3px;
}

.header .app-name A {
    color: black;
    font-weight: bold;
}

@media only screen and (max-width : 640px) {
    .header .session-controls {
        display: none;
    }

}

@media only screen and (min-width : 640px) {
    .header .session-controls {
        float: right;
    }

}

@media only screen and (min-width : 640px) {
    .landing-page {
        display: flex;
        flex-direction: row;
    }

}

.landing-page .message-text {
    flex: 2;
    margin: 1em;
}

.landing-page .login-panel {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
}

.landing-page .login-panel A {
    width: 80%;
    text-align: center;
    margin: 0.5em;
    padding: 0.5em;
}

.page-message {
    margin: 0 auto;
    padding: 1em;
    max-width: 960px;
    overflow: auto;
}

.page-message .session-controls {
    padding-top: 10px;
    display: block;
    text-align: center;
}

@media only screen and (min-width : 640px) {
    .page-message .session-controls {
        display: none;
    }

}

A.emphasize {
    padding: 4px 20px 4px 20px;
    border: 1px solid #d0d0ff;
    background: #d0d0ff;
    margin: 6px;
    color: black;
}

.item-control {
    width: 45px;
    min-width: 40px;
    flex: 0;
    text-align: center;
}

@media only screen and (min-width : 640px) {
    .item-control {
        width: 25px;
        min-width: 25px;
    }

}

/*** Toplevel list styling ***/

.toplevel-list {
    width: 100%;
    box-sizing: border-box;
}

.toplevel-list h2 {
    margin: 0px;
    padding: 0px;
    padding-left: 12px;

    font-size: 14px;
}

.toplevel-list h2:not(:first-child) {
    padding-top: 18px;
}

.toplevel-list h2 A {
    color: black;
}

@media only screen and (min-width : 640px) {
    .toplevel-list {
        padding-left: 0px;
        padding-right: 0px;
    }

}

.toplevel-list .item-description {
    width: 100%;
    white-space: normal;
    box-sizing: border-box;
    min-height: 24px;
    align-items: center;
    padding-left: 6px;
    padding-right: 6px;
}

.toplevel-list .item-description input {
    flex: 1;
}

.order-drop-target.drop-hover {
    background: #d0d0d0;
}

.snoozed-item-warning A {
    color: blue;
}

textarea.item-description {
    width: 100%;
    font-size: 14px;
    height: 50px;
}

h3 {
    margin-top: 10px;
    margin-bottom: 10px;
    font-weight: normal;
}

.sidebar.footer {
    text-align: center;
}

.sidebar .copyright {
    margin-top: 1em;
    text-align: center;
    font-style: italic;

    padding: 10px;
}

/* Pill common component */

A .pill {
    color: black;
}

.pill A {
    color: black;
}

.pill {
    margin-left: 0.25em;
    margin-right: 0.25em;

    padding-left: 0.375em;
    padding-right: 0.375em;
    font-size: 13px;

    border-radius: 5px;
    background: #f0f0f0;
}

.pill.dev {
    background: red;
    color: white;
    margin-left: 3px;
    padding: 3px;
}

.pill.admin {
    background: #c0c0c0;
    color: white;
    margin-left: 3px;
    padding: 3px;
}

.pill.emphasize {
    border-color: #c0c0c0;
}

.pill.highlight {
    border-color: #c0c0c0;
    background: #c0c0c0;
}

.list-visibility-flag {
    padding-left: 6px;
}

.item-drag-handle {
    width: 16px;
    justify-content: center;
}

.item-drag-handle.right {
    width: 24px;
}

.priority.left,.item-drag-handle.left {
    display: none;
}

.priority.right,.item-drag-handle.right {
    display: flex;
}

@media only screen and (min-width : 640px) {
    .priority.left,.item-drag-handle.left {
        display: flex;
    }

    .priority.right,.item-drag-handle.right {
        display: none;
    }

}

.item-button {
    border: 0px none;
    background: transparent;
    padding: 0.2em;
    cursor: pointer;
}

.clickable {
    cursor: pointer;
}

.drag-item {
    padding: 0.2em;
    border: 2px solid black;
    background: white;
}

.list-control-footer {
    text-align: center;
    font-style: italic;
}

p.new-user {
    font-style: italic;
}

/*** List Configuration Controls ***/

.auth-form .config-panel {
    display: flex;
    flex-direction: column;
}

.config-panel  {
    padding-bottom: 0px;

    margin-left: 20px;

    margin-bottom: 15px;
}

.config-panel h1 {
    font-size: 14px;
    margin: 0px;
    padding-top: 0px;
    padding-bottom: 6px;
    margin-left: -20px;
    margin-bottom: 2px;
}

.config-panel input {
    margin-bottom: 8px;
}

.config-panel.toplevel {
    margin-left: 0px;
}

.config-panel.toplevel h1 {
    margin-left: 0px;
}

.config-panel .list-owner {
    display: flex;
    padding: 0px 0px 12px 0px;
}

.config-panel .list-owner input {
    margin: 0px;
}
.config-panel .list-owner input[type=text] {
    flex: 1;
}

.config-panel .list-owner .self-owner {
    display: inline-block;

    width: 32px;
}

.config-panel .scroll-column {
    max-height: 40vh;
}

.config-panel A, .query-settings A, A.item-link, A.details-link {
    color: blue;
}

.config-panel A.warning {
    color: red;
}

.config-panel A:not(:last-child) {
    margin-bottom: 16px;
}

form.details {
    padding-left: 0px;
}

@media print {
    .header {
        display: block;
        position: static;
    }

    .contents {
        display: block;
        position: static;
        padding: 0px;
    }

    .sidebar {
        display: none;
    }

    .new-item {
        display: none;
    }

    .session-controls {
        display: none;
    }

    .item-control.complete {
        display: none;
    }

    .app-name {
        display: inline;
    }

    .priority.left {
        display: block;
    }

    .priority.right {
        display: none;
    }

    .toggle-menu {
        display: none;
    }

    body {
        height: auto;
    }

    .snoozed-item-warning {
        display: none;
    }

}

.copyable-text {
    display: flex;
    align-items: baseline;
}

.copyable-text input {
    margin: 4px;
}

.copyable-text .clickable {
    padding: 4px;
    border: 1px solid #c0c0c0;
}
