/* Office Daily Tracker - mobile-first styles */
.odt-wrap, .odt-login-wrap {
    max-width: 600px;
    margin: 0 auto;
    font-family: -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    color: #222;
}

/* Login */
.odt-login-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 24px 16px;
}
.odt-login-form h2 { margin: 0 0 8px; }
.odt-login-form input {
    padding: 14px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 8px;
}
.odt-login-form button {
    padding: 14px;
    font-size: 16px;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
}
.odt-error { color: #dc2626; font-size: 14px; }

/* Header */
.odt-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    background: #1e293b;
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 10;
}
.odt-logout { color: #93c5fd; text-decoration: none; font-size: 14px; }

/* Alert banner - shown when new work is assigned to you */
.odt-alert-banner {
    margin: 12px 16px 0;
    padding: 14px;
    background: #fffbeb;
    border: 1px solid #fbbf24;
    border-radius: 10px;
}
.odt-alert-title { font-weight: 700; color: #92400e; margin-bottom: 8px; }
.odt-alert-list { list-style: none; margin: 0 0 10px; padding: 0; }
.odt-alert-list li {
    padding: 8px 10px;
    background: #fff;
    border: 1px solid #fde68a;
    border-radius: 8px;
    margin-bottom: 6px;
    font-size: 14px;
}
#odt-alert-dismiss {
    padding: 10px 16px;
    background: #d97706;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
}

/* Tabs - horizontal scroll on mobile */
.odt-tabs {
    display: flex;
    overflow-x: auto;
    gap: 6px;
    padding: 10px 12px;
    background: #f1f5f9;
    -webkit-overflow-scrolling: touch;
}
.odt-tab-btn {
    flex: 0 0 auto;
    padding: 10px 16px;
    border: none;
    border-radius: 20px;
    background: #e2e8f0;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    position: relative;
}
.odt-tab-btn.active { background: #2563eb; color: #fff; }

/* Notification badge on tab button */
.odt-badge {
    display: inline-block;
    min-width: 16px;
    padding: 1px 5px;
    margin-left: 4px;
    background: #dc2626;
    color: #fff;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.4;
}

.odt-hint { font-size: 13px; color: #64748b; margin: 0 0 12px; }

.odt-tab-content { display: none; padding: 14px 16px 40px; }
.odt-tab-content.active { display: block; }

/* Forms */
.odt-inline-form { display: flex; gap: 8px; margin-bottom: 14px; }
.odt-inline-form input {
    flex: 1;
    padding: 12px;
    font-size: 15px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
}
.odt-inline-form button, .odt-form-block button {
    padding: 12px 18px;
    background: #16a34a;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
}

.odt-form-block {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 18px;
    padding: 14px;
    background: #f8fafc;
    border-radius: 10px;
}
.odt-form-block label { font-size: 13px; font-weight: 600; color: #475569; }
.odt-form-block input, .odt-form-block textarea, .odt-form-block select {
    padding: 12px;
    font-size: 15px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    width: 100%;
    box-sizing: border-box;
}
.odt-form-block textarea { min-height: 70px; resize: vertical; }

/* Lists */
.odt-list { list-style: none; margin: 0; padding: 0; }
.odt-list li {
    padding: 12px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}
.odt-list li.completed { opacity: 0.55; text-decoration: line-through; }
.odt-item-actions { display: flex; gap: 8px; flex-shrink: 0; }
.odt-item-actions button {
    border: none;
    background: #f1f5f9;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 13px;
}
.odt-item-actions .odt-done-btn { background: #dcfce7; color: #166534; }
.odt-item-actions .odt-del-btn { background: #fee2e2; color: #991b1b; }
.odt-meta { font-size: 12px; color: #64748b; margin-top: 4px; }

/* Filter row (admin) */
.odt-filter-row { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.odt-filter-row select, .odt-filter-row input {
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    flex: 1;
    min-width: 120px;
}
.odt-filter-row button {
    padding: 10px 16px;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 8px;
}

.odt-overview-group { margin-bottom: 20px; }
.odt-overview-group h4 { margin: 0 0 8px; color: #1e293b; }

@media (min-width: 640px) {
    .odt-wrap { border: 1px solid #e2e8f0; border-radius: 12px; overflow: hidden; margin-top: 20px; }
}
