:root { --nc: #111827; --nc2: #2563eb; }
.bg-nc { background: linear-gradient(135deg, var(--nc), #1f2937 55%, var(--nc2)); }
.text-nc { color: var(--nc2) !important; }
.card-nc { border: 0; border-radius: 18px; box-shadow: 0 10px 30px rgba(15,23,42,.08); }
.btn-rounded { border-radius: 999px; }
.table thead th { white-space: nowrap; font-size: .82rem; text-transform: uppercase; letter-spacing: .02em; color: #475569; }
.table td { vertical-align: middle; }
.notification-menu { min-width: 380px; max-height: 520px; overflow: auto; }
.badge-soft { background: #eef2ff; color: #3730a3; }
.modal-xl-nc { --bs-modal-width: 1180px; }
.log-pre { max-height: 260px; overflow: auto; font-size: .78rem; background: #0b1020; color: #d1e7ff; border-radius: 12px; padding: 12px; }
.photo-thumb { width: 90px; height: 70px; object-fit: cover; border-radius: 10px; border: 1px solid #e5e7eb; }
.form-section { background: #f8fafc; border: 1px solid #e5e7eb; border-radius: 16px; padding: 16px; }
.sticky-actions { position: sticky; bottom: 0; background: #fff; border-top: 1px solid #e5e7eb; padding-top: 12px; z-index: 3; }
@media print { .navbar, .btn, .no-print, footer, .modal-backdrop { display:none!important; } main { padding:0!important; } }

/* To Do */
.todo-app { display: grid; grid-template-columns: 320px 1fr; gap: 18px; align-items: start; }
.todo-sidebar { position: sticky; top: 86px; max-height: calc(100vh - 110px); overflow: auto; }
.todo-main { min-height: calc(100vh - 150px); }
.todo-section-title { font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; color: #94a3b8; font-weight: 800; margin: 12px 0 6px; }
.todo-nav-list { display: flex; flex-direction: column; gap: 3px; }
.todo-nav-item { border: 0; background: transparent; border-radius: 12px; padding: 8px 10px; color: #111827; width: 100%; text-align: left; display: flex; align-items: center; gap: 8px; }
.todo-nav-item:hover, .todo-nav-item.active, .todo-list-row.active { background: #f1f5f9; }
.todo-list-row { display: flex; align-items: center; border-radius: 12px; }
.todo-list-row .todo-nav-item { border-radius: 12px 0 0 12px; }
.todo-emoji { width: 22px; display: inline-block; text-align: center; }
.todo-task-zone { min-height: 45px; }
.todo-group-title { font-weight: 800; color: #111827; margin: 8px 0; display: flex; gap: 8px; align-items: center; }
.todo-task-item { margin-left: var(--level-indent, 0); border-bottom: 1px solid #eef2f7; }
.todo-task-main { display: flex; align-items: flex-start; gap: 10px; padding: 10px 8px; border-radius: 12px; cursor: grab; }
.todo-task-main:hover { background: #f8fafc; }
.todo-task-title-wrap { cursor: pointer; }
.todo-task-title { font-size: .98rem; color: #0f172a; }
.todo-task-meta { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; color: #64748b; font-size: .78rem; margin-top: 3px; }
.todo-task-actions { opacity: .25; display: flex; gap: 4px; }
.todo-task-item:hover .todo-task-actions { opacity: 1; }
.todo-task-item.completed { opacity: .68; }
.todo-kanban-col { background: #f8fafc; border: 1px solid #e5e7eb; border-radius: 16px; padding: 12px; min-height: 420px; }
.todo-kanban-title { font-weight: 800; margin-bottom: 10px; }
.todo-kanban-drop { min-height: 360px; display: flex; flex-direction: column; gap: 10px; }
.todo-kanban-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 14px; padding: 12px; box-shadow: 0 4px 14px rgba(15,23,42,.06); cursor: grab; }
.tag-checks { min-height: 42px; max-height: 115px; overflow: auto; background: #fff; }
@media (max-width: 991px) { .todo-app { grid-template-columns: 1fr; } .todo-sidebar { position: static; max-height: none; } }
