.main-nav { margin-top: 32px; display: grid; gap: 7px; }
.nav-button { padding: 11px 13px; border: 1px solid transparent; border-radius: 11px; background: transparent; color: var(--muted); text-align: left; cursor: pointer; }
.nav-button:hover, .nav-button:focus-visible { color: var(--text); outline: none; }
.nav-button.active { border-color: var(--line); background: var(--soft); color: var(--cyan); }
.app-panel[hidden] { display: none; }
.knowledge-panel { min-width: 0; min-height: 720px; }
.knowledge-content { padding: 30px 40px; }
.section-intro { display: flex; justify-content: space-between; gap: 24px; align-items: center; margin-bottom: 22px; color: var(--muted); }
.section-intro p { margin: 0; max-width: 560px; }
.section-intro strong { color: var(--cyan); white-space: nowrap; }
.knowledge-list { display: grid; gap: 10px; }
.knowledge-list article { display: grid; grid-template-columns: 38px 1fr auto; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--soft); }
.knowledge-list article span { color: var(--cyan); font-size: 12px; font-weight: 800; }
.knowledge-list article p { margin: 0; line-height: 1.5; }
.knowledge-actions { display: flex; gap: 7px; align-items: flex-start; }
.knowledge-actions button { padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; }
.knowledge-actions button:hover, .knowledge-actions button:focus-visible { border-color: var(--cyan); color: var(--text); outline: none; }
.knowledge-list article.editing textarea { min-height: 76px; border: 1px solid var(--cyan); border-radius: 9px; background: var(--bg); }
.knowledge-form { margin-top: 28px; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: rgba(16, 31, 51, .7); }
.knowledge-form label { display: block; margin-bottom: 10px; font-weight: 750; }
.knowledge-form > div { display: flex; gap: 10px; align-items: flex-end; }
.knowledge-form textarea { min-height: 70px; border: 1px solid var(--line); border-radius: 11px; background: var(--bg); }
.knowledge-form button { padding: 12px 18px; border: 0; border-radius: 11px; background: var(--cyan); color: #03201d; font-weight: 850; cursor: pointer; }
.knowledge-form button:disabled { opacity: .55; }
.form-feedback { min-height: 18px; margin: 10px 0 0; color: var(--muted); font-size: 12px; }
#memory-panel .local-badge { color: var(--cyan); border-color: rgba(55, 214, 192, .35); }
.request-form > button { margin-top: 12px; }
.request-grid { display: grid !important; grid-template-columns: 1fr 1fr; gap: 10px; }
.request-grid input, .request-grid textarea { width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 11px; background: var(--bg); color: var(--text); }
.request-grid textarea { grid-column: 1 / -1; }
.request-list { display: grid; gap: 10px; }
.request-list article { display: grid; gap: 5px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--soft); }
.request-list article span { color: var(--cyan); font-size: 12px; }
.request-list article p { margin: 4px 0 0; color: var(--muted); line-height: 1.45; }
.request-controls { display: grid; grid-template-columns: 1fr 130px auto; gap: 8px; margin-top: 10px; }
.request-controls select, .request-controls input, .request-controls button { min-width: 0; padding: 9px 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--bg); color: var(--text); }
.request-controls button { background: var(--cyan); color: #03201d; font-weight: 800; cursor: pointer; }
.invoice-form { margin-top: 0; margin-bottom: 22px; }
.invoice-form select { flex: 1; padding: 12px; border: 1px solid var(--line); border-radius: 11px; background: var(--bg); color: var(--text); }
.invoice-controls { grid-template-columns: 1fr auto; align-items: center; }
.invoice-controls b { color: var(--amber); }
.invoice-controls a { padding: 9px 10px; border: 1px solid var(--line); border-radius: 9px; color: var(--cyan); text-align: center; text-decoration: none; }
.invoice-controls select, .invoice-controls input { min-width: 0; padding: 9px 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--bg); color: var(--text); }
@media (max-width: 760px) { .knowledge-content { padding: 24px 20px; } .section-intro { align-items: flex-start; flex-direction: column; } .knowledge-form > div { align-items: stretch; flex-direction: column; } .request-grid, .request-controls { grid-template-columns: 1fr; } .request-grid textarea { grid-column: auto; } }

.daily-calendar { margin-bottom: 24px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: rgba(16, 31, 51, .7); }
.daily-calendar[hidden] { display: none; }
.daily-calendar > header { display: grid; grid-template-columns: 42px 1fr 42px; align-items: center; margin-bottom: 14px; }
.daily-calendar h3 { margin: 0; text-align: center; text-transform: capitalize; font-size: 18px; }
.daily-calendar > header button { width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--text); font-size: 24px; cursor: pointer; }
.daily-calendar > header button:hover, .daily-calendar > header button:focus-visible { border-color: var(--cyan); outline: none; }
.calendar-weekdays, .calendar-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 7px; }
.calendar-weekdays { margin-bottom: 7px; color: var(--muted); font-size: 11px; font-weight: 750; text-align: center; }
.calendar-days > button, .calendar-days > span { min-height: 54px; }
.calendar-days > button { position: relative; display: grid; place-items: center; border: 1px solid transparent; border-radius: 10px; background: rgba(7, 17, 31, .68); color: var(--muted); }
.calendar-days > button:disabled { opacity: .55; }
.calendar-days > button.has-records { border-color: rgba(55, 214, 192, .42); background: rgba(55, 214, 192, .11); color: var(--text); cursor: pointer; }
.calendar-days > button.has-records:hover, .calendar-days > button.has-records:focus-visible { border-color: var(--cyan); outline: none; transform: translateY(-1px); }
.calendar-days > button b { position: absolute; right: 5px; bottom: 5px; min-width: 19px; padding: 2px 5px; border-radius: 999px; background: var(--cyan); color: #03201d; font-size: 10px; }
.day-records-dialog { width: min(680px, calc(100% - 32px)); max-height: min(620px, calc(100vh - 48px)); padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: var(--panel); color: var(--text); box-shadow: 0 28px 80px rgba(0, 0, 0, .6); }
.day-records-dialog::backdrop { background: rgba(2, 8, 16, .76); backdrop-filter: blur(4px); }
.day-dialog-header { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.day-dialog-header h3 { margin: 0; text-transform: capitalize; font-size: 22px; }
.day-dialog-header button { width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--text); font-size: 24px; cursor: pointer; }
.day-records-list { max-height: 430px; margin: 0; padding: 12px 24px 12px 58px; overflow-y: auto; }
.day-records-list li { padding: 12px 0 12px 4px; border-bottom: 1px solid var(--line); color: var(--cyan); }
.day-records-list li::marker { font-weight: 850; }
.day-records-list li > div, .day-records-list li > button { width: 100%; display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; }
.day-record-button { padding: 3px 4px; border: 0; border-radius: 9px; background: transparent; color: inherit; text-align: left; cursor: pointer; }
.day-record-button:hover, .day-record-button:focus-visible { background: rgba(55, 214, 192, .1); outline: 1px solid rgba(55, 214, 192, .45); }
.day-records-list li > .day-record-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; }
.day-record-delete { padding: 8px 11px; border: 1px solid rgba(255, 112, 112, .55); border-radius: 9px; background: rgba(255, 82, 82, .1); color: #ff9a9a; cursor: pointer; }
.day-record-delete:hover, .day-record-delete:focus-visible { background: rgba(255, 82, 82, .22); outline: 1px solid #ff7777; }
.delete-confirm-dialog { width: min(420px, calc(100% - 32px)); padding: 0; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); color: var(--text); box-shadow: 0 28px 80px rgba(0, 0, 0, .65); }
.delete-confirm-dialog::backdrop { background: rgba(2, 8, 16, .76); backdrop-filter: blur(4px); }
.delete-confirm-body { padding: 24px; }
.delete-confirm-body h3 { margin: 8px 0 10px; }
.delete-confirm-body > p:not(.eyebrow) { color: var(--muted); }
.delete-confirm-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
.delete-confirm-actions button { padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--soft); color: var(--text); cursor: pointer; }
.delete-confirm-actions #delete-confirm-yes { border-color: rgba(255, 112, 112, .55); background: #c94848; color: white; font-weight: 800; }
.day-records-list strong { display: block; color: var(--text); }
.day-records-list span { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; line-height: 1.35; }
.day-records-list time { color: var(--amber); font-size: 12px; font-weight: 800; white-space: nowrap; }
.day-records-limit { margin: 0; padding: 12px 24px 18px; color: var(--muted); font-size: 12px; }
.request-editor-dialog { width: min(470px, calc(100% - 32px)); padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: var(--panel); color: var(--text); box-shadow: 0 28px 80px rgba(0, 0, 0, .65); }
.request-editor-dialog::backdrop { background: rgba(2, 8, 16, .76); backdrop-filter: blur(4px); }
.request-editor-body { display: grid; gap: 9px; padding: 20px 24px 24px; }
.request-editor-detail { margin: 0 0 8px; color: var(--muted); line-height: 1.45; }
.request-editor-body label { color: var(--muted); font-size: 12px; font-weight: 750; }
.request-editor-body select, .request-editor-body input { width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--text); }
.request-editor-body > button { margin-top: 8px; padding: 12px 16px; border: 0; border-radius: 10px; background: var(--cyan); color: #03201d; font-weight: 850; cursor: pointer; }
.request-editor-body > button:disabled { opacity: .55; }
.invoice-editor-dialog { width: min(560px, calc(100% - 32px)); }
.invoice-editor-amount { margin-bottom: 5px; color: var(--amber); font-size: 17px; }
.invoice-payment-fields { display: grid; gap: 9px; }
.invoice-payment-fields[hidden] { display: none; }
.invoice-editor-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 4px; }
.invoice-editor-actions button, .invoice-editor-actions a { padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--cyan); text-align: center; text-decoration: none; cursor: pointer; }
.invoice-editor-actions a { grid-column: 1 / -1; }
.invoice-editor-actions a[hidden] { display: none; }
.invoice-editor-actions button:hover, .invoice-editor-actions button:focus-visible, .invoice-editor-actions a:hover, .invoice-editor-actions a:focus-visible { border-color: var(--cyan); outline: none; }
.stats-month-header { display: grid; grid-template-columns: 44px 1fr 44px; gap: 14px; align-items: center; margin-bottom: 20px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: rgba(16, 31, 51, .7); }
.stats-month-header > div { text-align: center; }
.stats-month-header p { margin: 0 0 4px; color: var(--muted); font-size: 12px; }
.stats-month-header h3 { margin: 0; text-transform: capitalize; font-size: 20px; }
.stats-month-header button { width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--text); font-size: 25px; cursor: pointer; }
.stats-month-header button:hover, .stats-month-header button:focus-visible { border-color: var(--cyan); outline: none; }
.stats-list { display: grid; gap: 8px; }
.stats-list article { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--soft); }
.stats-list article strong, .stats-list article span { display: block; }
.stats-list article span { margin-top: 3px; color: var(--muted); font-size: 11px; }
.stats-list article b { color: var(--cyan); font-size: 16px; }
.stats-total { display: flex; justify-content: space-between; gap: 20px; align-items: center; margin-top: 16px; padding: 18px; border: 1px solid rgba(244, 183, 95, .45); border-radius: 14px; background: rgba(244, 183, 95, .08); }
.stats-total span { color: var(--muted); }
.stats-total strong { color: var(--amber); font-size: 23px; }
.costs-list article b { color: var(--amber); }
.costs-total { border-color: rgba(244, 183, 95, .55); }
.requests-header { gap: 24px; }
.daily-summary { display: grid; grid-template-columns: repeat(2, minmax(130px, 1fr)); gap: 9px; margin-left: auto; }
.daily-summary[hidden] { display: none; }
.summary-column { min-width: 148px; padding: 4px 13px; border: 1px solid var(--line); border-radius: 12px; background: var(--soft); }
.summary-metric { padding: 7px 0; }
.summary-metric + .summary-metric { border-top: 1px solid var(--line); }
.daily-summary span, .daily-summary strong { display: block; }
.daily-summary span { margin-bottom: 3px; color: var(--muted); font-size: 10px; }
.daily-summary strong { color: var(--cyan); font-size: 17px; }
.daily-summary .profit-metric strong { color: #73e2a7; }
.daily-summary .delivery-metric strong { color: #c7a7ff; }
.daily-summary.seller-daily-summary { grid-template-columns: minmax(148px, 1fr); }
.daily-summary .summary-column:last-child .summary-metric:first-child strong, .daily-summary .summary-column:last-child .summary-metric:last-child strong { color: var(--amber); }
@media (max-width: 980px) { .requests-header { flex-wrap: wrap; } .daily-summary { order: 3; width: 100%; margin-left: 0; } }
@media (max-width: 560px) { .daily-calendar { padding: 12px; } .calendar-weekdays, .calendar-days { gap: 4px; } .calendar-days > button, .calendar-days > span { min-height: 43px; } .day-records-list { padding-left: 48px; } .day-records-list li > div, .day-records-list li > button { grid-template-columns: 1fr; } .day-records-list li > .day-record-row { grid-template-columns: 1fr; } }
