* { box-sizing: border-box; font-family: 'Segoe UI', Tahoma, sans-serif; -webkit-tap-highlight-color: transparent; }
html, body { overflow-x: hidden; }
body { background: #f4f7fc; margin: 12px; color: #2c3e50; font-size: 15px; }
.container { max-width: 1600px; margin: 0 auto; background: #fff; padding: 15px;
    border-radius: 16px; box-shadow: 0 8px 24px rgba(0,0,0,0.1); }

/* ============ БАННЕР ============ */
.banner {
    position: relative; width: 100%; overflow: hidden; border-radius: 12px;
    margin-bottom: 20px; background: #1a3a5c;
    display: flex; align-items: center; justify-content: center;
}
.banner img {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover; display: none;
}
.banner img.active { display: block; }
.banner.landscape { aspect-ratio: 10 / 1; }
.banner.portrait  { aspect-ratio: 10 / 2; }
@supports not (aspect-ratio: 10 / 1){
    .banner.landscape { height: 10vw; }
    .banner.portrait  { height: 20vw; }
}
.banner .banner-title {
    position: relative; z-index: 2; color: #fff; font-size: 32px;
    font-weight: 800; letter-spacing: 2px; text-transform: uppercase;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5); margin: 0;
    padding: 0 20px; text-align: center;
}
@media (max-width: 600px) {
    .banner .banner-title { font-size: 22px; letter-spacing: 1px; }
    .banner { border-radius: 10px; margin-bottom: 15px; }
}

/* ============ ВЕРХНЯЯ ПАНЕЛЬ ============ */
.user-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
    background: #1a3a5c; color: #fff; padding: 12px 16px; border-radius: 12px;
    margin-top: 20px; }
.user-bar .user-info { font-size: 14px; opacity: 0.9; margin-right: auto; }
.user-bar .user-info strong { font-weight: 700; }
.user-bar button { padding: 8px 16px; border: none; border-radius: 8px;
    font-size: 13px; font-weight: 600; cursor: pointer; transition: 0.2s; }
.btn-logout { background: rgba(255,255,255,0.15); color: #fff; }
.btn-logout:hover { background: rgba(255,255,255,0.25); }
.sync-status { font-size: 12px; opacity: 0.85; padding: 3px 10px;
    border-radius: 12px; background: rgba(255,255,255,0.1); }
.sync-status.saving { background: #f39c12; color: #fff; }
.sync-status.saved  { background: #27ae60; color: #fff; }
.sync-status.error  { background: #e74c3c; color: #fff; }

/* ============ ЛОГИН ============ */
.login-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, #1a3a5c 0%, #2b5a8c 100%);
    display: flex; align-items: center; justify-content: center;
    z-index: 9999; padding: 20px;
}
.login-box { background: #fff; padding: 30px 25px; border-radius: 20px;
    max-width: 420px; width: 100%; box-shadow: 0 30px 80px rgba(0,0,0,0.4); }
.login-box h1 { margin: 0 0 8px; color: #1a3a5c; font-size: 22px; }
.login-box p { margin: 0 0 20px; color: #5a6e82; font-size: 14px; line-height: 1.4; }
.login-box label { display: block; font-weight: 600; color: #1a3a5c;
    margin-bottom: 6px; font-size: 14px; }
.login-box input { width: 100%; padding: 14px; border: 2px solid #bdd0e6;
    border-radius: 10px; font-size: 16px; outline: none;
    font-family: inherit; margin-bottom: 16px; transition: border-color 0.15s; }
.login-box input:focus { border-color: #2b5a8c;
    box-shadow: 0 0 0 4px rgba(43,90,140,0.15); }
.login-box .hint { font-size: 12px; color: #8899aa; margin-top: -10px; margin-bottom: 16px; }
.login-box button { width: 100%; padding: 14px; background: #1a3a5c;
    color: #fff; border: none; border-radius: 10px; font-size: 15px;
    font-weight: 700; cursor: pointer; transition: 0.2s; }
.login-box button:hover { background: #0f2a44; }
.login-box button:disabled { background: #8899aa; cursor: not-allowed; }
.login-error { color: #e74c3c; font-size: 13px; margin-top: 12px;
    text-align: center; min-height: 18px; }

/* ============ ВКЛАДКИ ============ */
.tabs { display: flex; gap: 4px; margin-bottom: 15px; border-bottom: 2px solid #d0dbe8; }
.tab-btn { padding: 12px 20px; border: none; background: #eef4fb; color: #5a6e82;
    font-size: 14px; font-weight: 600; cursor: pointer; border-radius: 10px 10px 0 0;
    transition: 0.2s; position: relative; top: 2px; flex: 1; }
.tab-btn:hover { background: #dde8f5; color: #1a3a5c; }
.tab-btn.active { background: #1a3a5c; color: #fff; top: 2px; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

h1 { font-size: 22px; margin: 0 0 15px; color: #1a3a5c; }

/* ============ ЕДИНЫЕ КНОПКИ ============ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    min-height: 44px;
    min-width: 200px;
    font-family: inherit;
}
.btn-primary { background: #1a3a5c; color: #fff; }
.btn-primary:hover { background: #0f2a44; }
.btn-success { background: #27ae60; color: #fff; }
.btn-success:hover { background: #1e8449; }
.btn-stats { background: #8e44ad; color: #fff; }
.btn-stats:hover { background: #6c3483; }
.btn-calc { background: #8e44ad; color: #fff; }
.btn-calc:hover { background: #6c3483; }
.btn-calc2 { background: #16a085; color: #fff; }
.btn-calc2:hover { background: #12866f; }
.btn-vacation { background: #e67e22; color: #fff; }
.btn-vacation:hover { background: #ca6f1e; }

.btn-inline { min-width: 120px; padding: 10px 16px; }

.action-bar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 20px;
}

/* ============ ТУЛБАР ============ */
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 15px;
    padding: 12px; background: #eef4fb; border-radius: 12px; align-items: center; }
.month-filter, .year-filter { padding: 10px 14px; border-radius: 8px;
    border: 1px solid #bdd0e6; font-size: 14px; font-weight: 600;
    color: #1a3a5c; cursor: pointer; background: #fff; outline: none; min-height: 44px; }
.month-filter:focus, .year-filter:focus { border-color: #2b5a8c;
    box-shadow: 0 0 0 3px rgba(43,90,140,0.15); }

/* ============ ТАБЛИЦА ============ */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch;
    border-radius: 8px; border: 1px solid #d0dbe8; }
table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 1100px; }
th { background: #1a3a5c; color: #fff; padding: 10px 6px; text-align: center;
    font-weight: 600; white-space: nowrap; border: 1px solid #2c5282; font-size: 12px; }
th.shift-header { background: #2b5a8c; }
td { padding: 5px 4px; border: 1px solid #d0dbe8; vertical-align: middle; }
input, select, textarea { width: 100%; padding: 8px 6px; border: 1px solid #bdd0e6;
    border-radius: 6px; font-size: 13px; background: #fbfdff; outline: none;
    font-family: inherit; min-height: 38px; }
input:focus, select:focus, textarea:focus { border-color: #2b5a8c;
    box-shadow: 0 0 0 3px rgba(43,90,140,0.15); background: #fff; }
input.invalid, select.invalid, textarea.invalid { border-color: #e74c3c;
    background: #fdecea; box-shadow: 0 0 0 3px rgba(231,76,60,0.15); }
input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
input[type=number] { -moz-appearance: textfield; appearance: textfield; }
.comment-cell textarea { resize: vertical; min-height: 38px; }
.money-input { text-align: right; }
.money-input { -webkit-user-select: text; user-select: text; }
.daily-readonly { text-align: right; background: #eef4fb !important;
    color: #1a3a5c; font-weight: 700; cursor: not-allowed; }

input.advance-field {
    background: #fff3cd !important;
    border-color: #f0d98a !important;
    color: #856404 !important;
    font-weight: 700;
}
input.advance-field:focus {
    box-shadow: 0 0 0 3px rgba(240,217,138,0.5) !important;
    border-color: #e0b84a !important;
}

.delete-btn { background: #e74c3c; color: #fff; border: none; border-radius: 6px;
    width: 34px; height: 34px; font-size: 20px; font-weight: bold; cursor: pointer;
    display: flex; align-items: center; justify-content: center; margin: 0 auto; }
.delete-btn:hover { background: #c0392b; }
.col-direction { width: 130px; } .col-month { width: 100px; }
.col-day { width: 65px; }
.col-check { width: 46px; }
.col-money { width: 90px; }
.col-comment { width: 140px; } .col-action { width: 44px; }

.day-checkbox {
    width: 36px; height: 36px; border-radius: 8px;
    border: 2px solid #bdd0e6; background: #fbfdff;
    cursor: pointer; display: flex; align-items: center;
    justify-content: center; margin: 0 auto;
    transition: all 0.15s; user-select: none;
    font-weight: 800; font-size: 14px; color: #5a6e82;
    font-variant-numeric: tabular-nums;
}
.day-checkbox:active { transform: scale(0.95); }
.day-checkbox.checked { color: #fff; }
.day-checkbox.neutral { border-color: #bdd0e6; background: #fbfdff; }
.day-checkbox.neutral.checked { background: #5a6e82; border-color: #3d4d5c; }
.day-checkbox.work { border-color: #2980b9; background: #e3f0fa; }
.day-checkbox.work.checked { background: #2980b9; border-color: #1e5f8e; }
.day-checkbox.off { border-color: #27ae60; background: #e8f8ee; }
.day-checkbox.off.checked { background: #27ae60; border-color: #1e8449; }
.day-checkbox.locked { opacity: 0.6; cursor: not-allowed; }
.day-checkbox.locked:active { transform: none; }

/* ============ ФУТЕР ============ */
.footer-info { margin-top: 15px; display: flex; flex-direction: column; gap: 8px; }
.footer-row { display: flex; justify-content: space-between; align-items: center;
    padding: 10px 14px; background: #eef4fb; border-radius: 10px; flex-wrap: wrap; gap: 8px;
    font-size: 14px; }
.footer-row.grand { background: #1a3a5c; color: #fff; font-size: 15px;
    padding: 14px 16px; font-weight: 700; transition: background 0.2s;
    border: 2px solid #1a3a5c; }
.footer-row.grand.positive { background: #e8f8ee; color: #155724;
    border: 2px solid #27ae60; }
.footer-row.grand.negative { background: #fdecea; color: #721c24;
    border: 2px solid #e74c3c; }
.footer-row.grand .val { font-size: 18px; }
.footer-label { font-weight: 600; }
.footer-value { font-weight: 700; color: #1a3a5c; }
.val-positive { color: #155724 !important; }
.val-negative { color: #721c24 !important; }

.days-summary { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.days-card { display: flex; flex-direction: column; align-items: center;
    justify-content: center; padding: 10px 6px; border-radius: 10px;
    font-weight: 600; font-size: 12px; text-align: center; gap: 4px; }
.days-card .num { font-size: 20px; font-weight: 800; }
.days-card.work { background: #e3f0fa; color: #0c5460; border: 2px solid #a8d0e6; }
.days-card.off { background: #e8f8ee; color: #155724; border: 2px solid #a8d5b5; }
.days-card.total-days { background: #fff3cd; color: #856404; border: 2px solid #f0d98a; }

tr.hidden-row { display: none; }
tr.virtual-row { background: #f8fafd; }
tr.virtual-row td { background: #f8fafd; }
tr.virtual-row input,
tr.virtual-row select,
tr.virtual-row textarea { background: #f0f4f9; color: #5a6e82; cursor: not-allowed; }
tr.virtual-row .day-checkbox { opacity: 0.75; }
.col-hidden { display: none !important; }

/* ============ КАЛЕНДАРЬ ============ */
.cal-controls-bottom { display: flex; gap: 8px; align-items: center;
    flex-wrap: wrap; margin-top: 15px; padding: 12px;
    background: #eef4fb; border-radius: 12px; }
.cal-controls-bottom select { padding: 10px 12px; border-radius: 8px;
    border: 1px solid #bdd0e6; font-size: 14px; font-weight: 600;
    color: #1a3a5c; cursor: pointer; background: #fff; outline: none;
    flex: 1; min-width: 100px; min-height: 44px; }
.cal-controls-bottom select:focus { border-color: #2b5a8c;
    box-shadow: 0 0 0 3px rgba(43,90,140,0.15); }

.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; margin-top: 10px; }
.cal-head { text-align: center; font-weight: 700; color: #1a3a5c;
    padding: 8px 0; font-size: 12px; background: #eef4fb; border-radius: 6px; }
.cal-head.weekend { color: #e74c3c; }
.cal-cell { min-height: 90px; padding: 4px; border-radius: 6px;
    background: #fbfdff; border: 1px solid #d0dbe8; transition: 0.15s;
    cursor: pointer; position: relative; overflow: hidden; }
.cal-cell.empty { background: transparent; border: 1px dashed #e5ecf4; cursor: default; }
.cal-cell.has-day   { background: #d6eef9; }
.cal-cell.has-eve   { background: #c3d9f7; }
.cal-cell.has-off   { background: #d9f5e2; }
.cal-cell.has-work2 { background: #d5f0ea; }
.cal-cell.has-vacation { background: #fdebd0; border: 1px solid #e67e22; }
.cal-cell.today { border: 2px solid #e67e22; }
.cal-cell.selected { border: 2px solid #1a3a5c; box-shadow: 0 0 0 2px rgba(26,58,92,0.2); }
.cal-day-num { font-weight: 700; color: #1a3a5c; font-size: 12px; margin-bottom: 2px; }
.cal-cell.today .cal-day-num { color: #e67e22; }

.cal-shift-tag { font-size: 9px; padding: 2px 4px; margin-bottom: 2px;
    border-radius: 3px; font-weight: 700; text-align: center;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-shift-tag.uptime { background: #a8d8ea; color: #0c5460; }
.cal-shift-tag.evening { background: #9bb8e8; color: #1a1a5c; }
.cal-shift-tag.off { background: #a8e6c0; color: #155724; }
.cal-shift-tag.work2 { background: #7ed6c0; color: #0b4d3e; }
.cal-shift-tag.vacation { background: #e67e22; color: #fff; }
.cal-shift-tag.income { background: #f5b041; color: #fff; font-weight: 800; }

.cal-entry { font-size: 9px; padding: 2px 4px; margin-bottom: 2px;
    border-radius: 3px; white-space: nowrap; overflow: hidden;
    text-overflow: ellipsis; font-weight: 700; }
.cal-entry.trip-work { background: #2980b9; color: #fff; }
.cal-entry.trip-off  { background: #27ae60; color: #fff; }
.cal-more { font-size: 9px; color: #5a6e82; font-style: italic;
    text-align: center; font-weight: 600; }

.day-details { margin-top: 15px; padding: 14px; background: #eef4fb;
    border-radius: 12px; display: none; }
.day-details.show { display: block; }
.day-details h3 { margin: 0 0 10px; color: #1a3a5c; font-size: 16px; }
.day-details .detail-row { display: flex; gap: 10px; padding: 10px;
    background: #fff; border-radius: 8px; margin-bottom: 6px;
    align-items: center; flex-wrap: wrap; font-size: 13px; }
.detail-badge { padding: 3px 10px; border-radius: 12px; font-size: 11px; font-weight: 700; }
.detail-badge.trip-work { background: #2980b9; color: #fff; }
.detail-badge.trip-off  { background: #27ae60; color: #fff; }
.detail-badge.uptime { background: #a8d8ea; color: #0c5460; }
.detail-badge.evening { background: #9bb8e8; color: #1a1a5c; }
.detail-badge.shift-off { background: #a8e6c0; color: #155724; }
.detail-badge.work2 { background: #7ed6c0; color: #0b4d3e; }
.detail-badge.income { background: #f5b041; color: #fff; }
.detail-badge.vacation { background: #e67e22; color: #fff; }
.detail-dir { font-weight: 700; color: #1a3a5c; min-width: 100px; }
.detail-comment { color: #5a6e82; font-style: italic; flex: 1; font-size: 12px; }

/* ============ СТАТИСТИКА ============ */
.stats-controls { display: flex; gap: 8px; flex-wrap: wrap;
    padding: 12px; background: #eef4fb; border-radius: 12px; margin-bottom: 15px;
    align-items: center; }
.stats-controls label { font-weight: 600; color: #1a3a5c; font-size: 14px; }
.stats-controls select { padding: 10px 12px; border-radius: 8px;
    border: 1px solid #bdd0e6; font-size: 14px; font-weight: 600;
    color: #1a3a5c; cursor: pointer; background: #fff; outline: none; min-height: 44px; }
.stats-controls select:focus { border-color: #2b5a8c;
    box-shadow: 0 0 0 3px rgba(43,90,140,0.15); }

.stats-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px; margin-bottom: 20px; }
.stats-card { padding: 14px 16px; border-radius: 12px; border: 2px solid #e0e8f0;
    background: #fbfdff; display: flex; flex-direction: column; gap: 6px; }
.stats-card .label { font-size: 12px; color: #5a6e82; font-weight: 600; }
.stats-card .value { font-size: 22px; font-weight: 800; color: #1a3a5c; }
.stats-card.blue { background: #e3f0fa; border-color: #a8d0e6; }
.stats-card.green { background: #e8f8ee; border-color: #a8d5b5; }
.stats-card.yellow { background: #fff3cd; border-color: #f0d98a; }
.stats-card.orange { background: #fdebd0; border-color: #f0c78a; }
.stats-card.red { background: #fdecea; border-color: #f0a8a0; }
.stats-card.purple { background: #ede9fe; border-color: #c4b5fd; }

.stats-table-wrap { overflow-x: auto; border-radius: 8px;
    border: 1px solid #d0dbe8; margin-bottom: 15px; }
table.stats-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 0; }
table.stats-table th { background: #1a3a5c; color: #fff; padding: 10px 8px;
    text-align: center; font-weight: 600; white-space: nowrap;
    border: 1px solid #2c5282; font-size: 12px; }
table.stats-table td { padding: 8px 6px; border: 1px solid #d0dbe8;
    text-align: center; vertical-align: middle; }
table.stats-table tr:nth-child(even) td { background: #f8fafd; }
table.stats-table tr.total-row td { background: #1a3a5c; color: #fff;
    font-weight: 700; font-size: 14px; }
table.stats-table td.money { text-align: right; font-variant-numeric: tabular-nums; }
table.stats-table td.num { font-weight: 700; }
table.stats-table td.positive { color: #155724; font-weight: 700; }
table.stats-table td.negative { color: #721c24; font-weight: 700; }

.stats-section-title { font-size: 16px; font-weight: 700;
    color: #1a3a5c; margin: 15px 0 10px; }

.stats-total-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.stats-total-block { padding: 14px 16px; border-radius: 12px;
    background: #eef4fb; display: flex; justify-content: space-between;
    align-items: center; font-size: 15px; font-weight: 600; }
.stats-total-block .amount { font-size: 20px; font-weight: 800;
    font-variant-numeric: tabular-nums; }
.stats-total-block.positive { background: #e8f8ee; color: #155724;
    border: 2px solid #27ae60; }
.stats-total-block.negative { background: #fdecea; color: #721c24;
    border: 2px solid #e74c3c; }

/* ============ МОДАЛКИ ============ */
.modal-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(26, 58, 92, 0.5); display: none;
    align-items: center; justify-content: center; z-index: 1000; padding: 15px;
}
.modal-overlay.show { display: flex; }
.modal { background: #fff; border-radius: 16px; padding: 22px;
    max-width: 440px; width: 100%; box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    max-height: 90vh; overflow-y: auto; }
.modal h2 { margin: 0 0 12px; color: #1a3a5c; font-size: 18px; }
.modal p { margin: 0 0 12px; color: #5a6e82; font-size: 13px; line-height: 1.5; }
.modal label { display: block; margin-bottom: 6px; font-weight: 600;
    color: #1a3a5c; font-size: 13px; }
.modal input, .modal select { width: 100%; padding: 12px; border: 1px solid #bdd0e6;
    border-radius: 8px; font-size: 15px; margin-bottom: 14px;
    outline: none; font-family: inherit; min-height: 44px; }
.modal input:focus, .modal select:focus { border-color: #2b5a8c;
    box-shadow: 0 0 0 3px rgba(43,90,140,0.15); }
.modal-buttons { display: flex; gap: 10px; margin-top: 8px; }
.modal-buttons button { padding: 12px; border: none; border-radius: 8px;
    font-size: 14px; font-weight: 600; cursor: pointer; transition: 0.2s;
    flex: 1; min-height: 44px; }
.modal-buttons .cancel { background: #eef4fb; color: #5a6e82; }
.modal-buttons .cancel:hover { background: #dde8f5; }
.modal-buttons .ok { background: #1a3a5c; color: #fff; }
.modal-buttons .ok:hover { background: #0f2a44; }
.modal-buttons .ok2 { background: #16a085; color: #fff; }
.modal-buttons .ok2:hover { background: #12866f; }

/* ============ МОБИЛЬНОЕ ============ */
@media (max-width: 600px) {
    body { margin: 6px; }
    .container { padding: 10px; border-radius: 12px; }
    h1 { font-size: 20px; }
    .tab-btn { font-size: 13px; padding: 10px 8px; }
    .toolbar { padding: 10px; gap: 6px; }
    .toolbar .btn { flex: 1 1 100%; }
    .month-filter, .year-filter { flex: 1 1 calc(50% - 4px); }
    .user-bar { padding: 10px 12px; }
    .user-bar .user-info { font-size: 13px; }
    .user-bar button { padding: 8px 12px; font-size: 12px; }
    .days-card .num { font-size: 18px; }
    .days-card { font-size: 11px; padding: 8px 4px; }
    .footer-row { padding: 10px 12px; font-size: 13px; }
    .footer-row.grand { font-size: 13px; padding: 12px; }
    .footer-row.grand .val { font-size: 16px; }
    .cal-cell { min-height: 76px; padding: 3px; }
    .cal-shift-tag { font-size: 8px; padding: 1px 2px; }
    .cal-head { font-size: 11px; padding: 6px 0; }
    .cal-controls-bottom { padding: 10px; gap: 6px; }
    .cal-controls-bottom select, .cal-controls-bottom .btn { min-height: 44px; font-size: 14px; flex: 1 1 100%; min-width: 0; }
    .day-checkbox { width: 34px; height: 34px; font-size: 13px; }
    .stats-cards { grid-template-columns: 1fr 1fr; }
    .stats-total-grid { grid-template-columns: 1fr; }
    .btn { min-width: 100%; }
    .action-bar { flex-direction: column; }
}
/* Кнопка «+ Заметка» */
.btn-note { background: #9b59b6; color: #fff; }
.btn-note:hover { background: #7d3c98; }

/* Плашка заметки в ячейке календаря */
.cal-note-tag {
    font-size: 9px;
    padding: 2px 4px;
    margin-bottom: 2px;
    border-radius: 3px;
    background: #9b59b6;
    color: #fff;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: 0.15s;
}
.cal-note-tag:hover {
    background: #7d3c98;
}

/* Блок заметки в деталях дня */
.detail-row.note-row {
    background: #f5eaf9;
    border-left: 3px solid #9b59b6;
}
.detail-badge.note-badge {
    background: #9b59b6;
    color: #fff;
}
.note-delete-btn {
    background: #e74c3c;
    color: #fff;
    border: none;
    border-radius: 6px;
    width: 28px;
    height: 28px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-left: auto;
}
.note-delete-btn:hover {
    background: #c0392b;
}