/* toto.css - Todo list styling, layered on site.css */

dialog .sublist-selector {
    margin-left: 0px;
    margin-bottom: 10px;
    width: 100%;
}

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

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

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

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

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

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

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

.toplevel-list .list-view-section:not(:first-child) {
    border-top: 1px solid #f0f0f0;
    padding-top: 16px;
}

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

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

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

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

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

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

    font-style: italic;
}

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

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

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

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

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

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

p.new-list {
    text-align: center;
    font-style: italic;

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

@media print {

    .query-settings {
        display: none;
    }

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

    .new-item-form {
        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;
}