/* toto.css - Site styling */

/*** 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: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.2);
}

dialog {
    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 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;
}

.snooze-choices {
    display: flex;
    flex-direction: column;
}

.snooze-choices input {
    width: 120px;
}

.snooze-item-text {
    border: 1px solid #c0c0c0;
    max-height: 10vh;
    overflow-y: scroll;
    padding: 8px;
}

.snooze-choices .post-button {
    display: block;

    width: 120px;
    padding: 8px;
    background: #f0f0f0;
    margin-bottom: 12px;
}

.snooze-choices .post-button:hover {
    background: #e0e0e0;
}

.header {
    flex: 0;

    z-index: 2;

    color: #202020;

    padding: 10px;
}

.contents {
    flex: 1;

    background: white;

    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    padding: 0px;

    display: flex;
    flex-direction: column;
}

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

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

@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;
}

.dangerous {
    color: red;
    margin-right: 0.5em;
}

.warning {
    color: red;
}

.embedded {
    display: inline;
    padding: 0px;
    margin: 0px;
}

.hidden {
    display: none;
}

/*** Icons ***/

.icon-back-arrow {
    padding-right: 3px;
    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%);
}

/*** New Item Form ***/

.new-item-form {
    flex: 1;

    display: flex;
    flex-direction: row;
    margin: 0px;
    padding: 0px 6px 6px 6px;

    align-items: center;
}

.new-item-form input[type=text] {
    flex: 1;
    min-width: auto;
    width: auto;
}

.new-item-form select {
    margin-right: 10px;
}

@media only screen and (max-width : 640px) {
    .new-item-form {
        flex-wrap: wrap;
    }

    .new-item-form select {
        width: 100%;
        margin-bottom: 10px;
    }
}

.new-item-form .high-priority-submit {
    background: transparent;
    padding: 6px;
    cursor: pointer;

    border: none;
}

.new-item-form button.high-priority-submit i.icon-gray:hover {
    color: #b0b0b0;
}

.new-item-form button:hover {
    background: #eeeeee;
}

.new-item-form .high-priority-submit {
    flex: 0;
}

.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;
    }
}

.query-settings {
    margin: 6px 0px 6px 0px;
    padding: 6px;

    right: 0px;

    border: 1px solid #f0f0f0;
    background: #f7f7f7;

    display: flex;
    flex-direction: row;
    justify-content: center;
}

.query-settings .control-segment {
    display: inline-flex;
    padding-right: 10px;
    min-height: 40px;
    align-items: center;
}

.query-settings .control-segment label {
    margin-right: 5px;
}

.query-settings .control-segment label:not(:first-child) {
    margin-left: 5px;
}

.query-settings form {
    margin-left: 10px;
}

.query-settings form input {
    margin-left: 3px;
}

.query-settings select {
    margin-top: 4px;
    margin-bottom: 4px;
}

.page-message {
    margin: 1em;
}

.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;
    }
}

.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;
    }
}

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

.completed-item {
    text-decoration: line-through;
}

.deleted-item {
    text-decoration: line-through;
    color: #c0c0c0;
}

.item-control {
    width: 35px;
    min-width: 35px;
    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 .list-view-section:not(:first-child) {
    border-top: 1px solid #f0f0f0;
    padding-top: 16px;
}

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

    font-size: 14px;
}

.toplevel-list .list-view-section h2 .other-item-count {
    font-weight: normal;
    font-style: italic;
}

.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;
    }
}

.empty-list {
    text-align: center;
    margin: 20px;
}

h1 {
    font-size: 16px;

    margin-bottom: 2px;
}

.empty-list p {
    font-size: 14px;
    font-style: italic;
    margin: 8px;
}

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

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

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

.snoozed-item-query-settings {
    text-align: center;

    padding-left: 10px;
    padding-right: 10px;

    padding-top: 10px;
    padding-bottom: 10px;

    font-style: italic;
}

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

.self-link {
    border: 1px solid #c0c0c0;
    padding: 2px;
}

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

/* List manager styling */

.toplevel-list.list-list A.details-link {
    padding-left: 4px;
    padding-right: 4px;
}

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

/* Sidebar Styling */

.sidebar .list-list .list-row {
    border-right: 5px solid white;
    padding-right: 10px;
    padding-left: 10px;

    padding-top: 6px;
    padding-bottom: 6px;
}

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

@media only screen and (min-width : 640px) {
    .sidebar .list-list .list-row {
        padding-top: 0px;
        padding-bottom: 0px;
    }
}

.sidebar .list-list A {
    color: black;
}

.sidebar .list-list .list-row:hover {
    background: #fffafa;
}

.sidebar .list-list .list-row, .sidebar .list-list .control-row {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.sidebar .list-list .list-row A {
    padding-top: 0.75em;
    padding-bottom: 0.75em;
}

.sidebar .list-list .list-row .item {
    flex: 1;
}

.sidebar .list-list .control-row {
    padding-top: 1.25em;
    justify-content: center;
}

.sidebar .list-list .selected.drop-hover,
.sidebar .list-list .drop-hover {
    background: #e0e0e0;
}

.sidebar .list-list .selected A {
    color: red;
}

.sidebar .list-list .selected {
    background: #fff7f7;
    border-right: 5px solid red;
}

.sidebar .list-list .view {
    font-style: italic;
}

.sidebar .list-list .control-row {
    text-align: center;
}

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

    padding: 10px;
}

/* Pill common component */

A .pill {
    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.emphasize {
    border-color: #c0c0c0;
}

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

.snoozed .pill {
    font-weight: bold;
}

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

.item-description {
    padding-left: 6px;
    padding-right: 6px;
}

.item-description .embedded {
    flex: 1;
}

.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;
    }
}

.editing .right {
    display: none;
}

.item-priority A {
    padding-left: 0.25em;
    padding-right: 0.25em;
}

.item-row {
    display: flex;
    flex-direction: row;
    align-items: center;

    white-space: nowrap;

    padding-left: 4px;
    padding-top: 8px;
    padding-bottom: 8px;
    padding-right: 16px;
}

.item-row input {
    margin: 0px;
    padding-left: 0px;
    padding-right: 0px;
}

.item-row .item-description {
    flex: 1;
}

@media only screen and (min-width : 640px) {
    .item-row {
        padding-bottom: 4px;
    }
}

.item-row.item-drag-handle {
    width: 25px;
    min-width: 25px;
}

@media only screen and (min-width : 640px) {
    .item-row.item-drag-handle {
        padding: 3px 6px 3px 3px;
        font-size: inherit;
    }
}

.low-priority {
    font-style: italic;
}

.snoozed {
    font-style: italic;
}

.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-list {
    text-align: center;
    font-style: italic;

    padding-top: 1em;
    padding-bottom: 1em;
}

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;
}

.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;
    }

    .query-settings {
        display: none;
    }

    .new-item {
        display: none;
    }

    .session-controls {
        display: none;
    }

    .item-row {
        padding-top: 6px;
        padding-bottom: 6px;
    }

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

    .app-name {
        display: inline;
    }

    .priority.left {
        display: block;
    }

    .priority.right {
        display: none;
    }

    .toggle-menu {
        display: none;
    }

    .new-item-form {
        display: none;
    }

    body {
        height: auto;
    }

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

    .item-row .item-drag-handle {
        display: none;
    }
}

.banner {
    border: 3px solid white;
    margin: 4px;
    padding: 8px;
    text-align: center;
}

.banner.valentines-day {
    border: 3px solid red;
    color: red;
}

.banner.sunset {
    border: 3px solid #fffec2;
    background: #fffec2;
}

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

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

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