/* utamadigital.id Helpdesk - Global Styles */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&family=DM+Mono:wght@400;500&display=swap');

:root {
  --bg:          #F5F0E8;
  --surface:     #FDFAF4;
  --surface2:    #F0EBE0;
  --border:      #D6CDB8;
  --border2:     #C4B99E;
  --ink:         #1A1612;
  --muted:       #7A7060;
  --accent:      #C84B2F;
  --accent-dk:   #8B2010;
  --accent-soft: #F4DDD8;
  --gold:        #B8860B;
  --gold-soft:   #FFF3CD;
  --green:       #2D6A4F;
  --green-soft:  #D8F3DC;
  --blue:        #1A4A7A;
  --blue-soft:   #DBEAFE;
  --red:         #CC0000;
  --red-soft:    #FFE4E4;
  --shadow-sm:   0 2px 0 #D6CDB8;
  --shadow-md:   0 4px 0 #C4B99E, 0 8px 24px rgba(26,22,18,.08);
  --shadow-lg:   6px 6px 0 #1A1612;
  --radius:      4px;
  --font-body:   'Poppins', sans-serif;
  --font-head:   'Poppins', sans-serif;
  --font-mono:   'DM Mono', monospace;
}

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }

html { scroll-behavior:smooth; }

body {
  font-family: var(--font-body);
  background:  var(--bg);
  color:       var(--ink);
  min-height:  100vh;
  font-size:   15px;
  line-height: 1.6;
  overflow-x:  hidden;
}

/* ---- TOPBAR ---- */
.topbar {
  background:  var(--ink);
  color:       var(--bg);
  min-height:  60px;
  padding:     12px 28px;
  display:     flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap:   wrap;
  gap:         12px;
  position:    sticky;
  top:         0;
  z-index:     100;
  border-bottom: 1px solid #2E2820;
}

.topbar-logo {
  font-family: var(--font-head);
  font-weight: 800;
  font-size:   17px;
  letter-spacing: -.02em;
  display:     flex;
  align-items: center;
  gap:         8px;
  flex-wrap:   wrap;
  text-decoration: none;
  color:       var(--bg);
}

.topbar-logo small {
  font-family: var(--font-mono);
  font-size:   9px;
  letter-spacing: 1.2px;
  color:       #B8AFA0;
  text-transform: uppercase;
}

.topbar-logo .badge {
  font-family: var(--font-mono);
  font-size:   9px;
  letter-spacing: 1.5px;
  background:  var(--accent);
  color:       #fff;
  padding:     2px 7px;
  border-radius: 2px;
}

.topbar-badge-admin {
  background: var(--gold) !important;
  color: var(--ink) !important;
}

.topbar-right {
  display:     flex;
  align-items: center;
  gap:         16px;
  min-width:   0;
  flex-wrap:   wrap;
}

.topbar-user {
  font-family: var(--font-mono);
  font-size:   12px;
  color:       #B8AFA0;
}

.topbar-user span { color: var(--bg); }

.btn-logout {
  font-family: var(--font-mono);
  font-size:   11px;
  letter-spacing: .5px;
  background:  transparent;
  border:      1px solid #4A4035;
  color:       #B8AFA0;
  padding:     5px 12px;
  border-radius: var(--radius);
  cursor:      pointer;
  transition:  all .15s;
}
.btn-logout:hover { border-color: var(--accent); color: var(--accent); }

/* ---- LAYOUT ---- */
.page-wrap {
  max-width: 1360px;
  margin:    0 auto;
  padding:   28px 24px;
}

/* ---- BUTTONS ---- */
.btn {
  display:     inline-flex;
  align-items: center;
  gap:         6px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size:   13px;
  padding:     9px 20px;
  border-radius: var(--radius);
  cursor:      pointer;
  border:      none;
  transition:  all .15s;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color:      #fff;
  box-shadow: 0 2px 0 var(--accent-dk);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 3px 0 var(--accent-dk); }
.btn-primary:active { transform: translateY(1px); box-shadow: none; }

.btn-dark {
  background: var(--ink);
  color:      var(--bg);
  box-shadow: 0 2px 0 #000;
}
.btn-dark:hover { transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color:      var(--muted);
  border:     1.5px solid var(--border);
}
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }

.btn-sm { font-size:11px; padding: 6px 12px; }
.btn-danger { background: var(--red); color:#fff; box-shadow: 0 2px 0 #900; }
.btn-danger:hover { transform: translateY(-1px); }

/* ---- FORM ---- */
.form-group { margin-bottom: 18px; }

.form-label {
  display:      block;
  font-family:  var(--font-mono);
  font-size:    10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color:        var(--muted);
  margin-bottom: 6px;
}

.form-label .req { color: var(--accent); }

.form-input, .form-select, .form-textarea {
  width:       100%;
  padding:     10px 14px;
  border:      1.5px solid var(--border);
  background:  var(--bg);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size:   14px;
  color:       var(--ink);
  outline:     none;
  transition:  border-color .15s, box-shadow .15s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(26,22,18,.08);
}
.form-textarea { resize: vertical; min-height: 90px; }
.form-input.error, .form-select.error, .form-textarea.error { border-color: var(--red); }
.form-hint { font-size:12px; color:var(--muted); margin-top:4px; }
.form-error { font-size:12px; color:var(--red); margin-top:4px; display:none; }
.form-error.show { display:block; }

.form-row { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
@media (max-width:640px) { .form-row { grid-template-columns:1fr; } }

/* ---- CARD ---- */
.card {
  background:   var(--surface);
  border:       1.5px solid var(--border);
  border-radius: var(--radius);
  box-shadow:   var(--shadow-sm);
}

.card-header {
  padding:     16px 22px;
  border-bottom: 1px solid var(--border);
  display:     flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap:   wrap;
  gap:         12px;
}

.card-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size:   16px;
}

.card-body { padding: 22px; }

/* ---- STAT CARD ---- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.stat-card {
  background:   var(--surface);
  border:       1.5px solid var(--border);
  border-radius: var(--radius);
  padding:      20px 22px;
  position:     relative;
  overflow:     hidden;
  min-height:   132px;
  box-shadow:   var(--shadow-sm);
}

.stat-card::before {
  content: '';
  position: absolute;
  top:0; left:0; right:0;
  height: 3px;
}

.stat-card.c-ink::before    { background: var(--ink); }
.stat-card.c-gold::before   { background: var(--gold); }
.stat-card.c-blue::before   { background: var(--blue); }
.stat-card.c-green::before  { background: var(--green); }
.stat-card.c-red::before    { background: var(--red); }
.stat-card.c-accent::before { background: var(--accent); }

.stat-label {
  font-family:  var(--font-mono);
  font-size:    10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color:        var(--muted);
  margin-bottom: 8px;
}

.stat-value {
  font-family:  var(--font-body);
  font-weight:  700;
  font-size:    40px;
  line-height:  1.05;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}

/* ---- STATUS BADGE ---- */
.badge {
  display:     inline-block;
  font-family: var(--font-mono);
  font-size:   10px;
  letter-spacing: .5px;
  padding:     3px 9px;
  border-radius: 2px;
  font-weight: 500;
  white-space: nowrap;
}

.badge-antrian  { background:var(--gold-soft);  color:#7A5C00; }
.badge-dikerjakan{ background:var(--blue-soft);  color:var(--blue); }
.badge-selesai  { background:var(--green-soft); color:var(--green); }
.badge-revisi   { background:var(--red-soft);   color:var(--red); }

.type-revisi    { background:var(--accent-soft); color:var(--accent); }
.type-update    { background:var(--blue-soft);   color:var(--blue); }
.type-bug       { background:var(--red-soft);    color:var(--red); }
.type-fitur     { background:var(--green-soft);  color:var(--green); }

.prio-tinggi    { color:var(--red); }
.prio-sedang    { color:var(--gold); }
.prio-rendah    { color:var(--green); }

/* ---- TABLE ---- */
.tbl-wrap { display:block; width:100%; background:var(--surface); border:1.5px solid var(--border); border-radius:var(--radius); overflow-x:auto; overflow-y:hidden; -webkit-overflow-scrolling:touch; touch-action:pan-x; box-shadow:var(--shadow-sm); }

.tbl {
  width:100%;
  border-collapse:collapse;
  font-size:13px;
}

.tbl thead { background:var(--ink); color:var(--bg); }

.tbl th {
  padding:12px 16px;
  font-family:var(--font-mono);
  font-size:10px;
  letter-spacing:1.5px;
  text-transform:uppercase;
  font-weight:500;
  text-align:left;
  white-space:nowrap;
}

.tbl td {
  padding:13px 16px;
  border-bottom:1px solid var(--border);
  vertical-align:middle;
}

.tbl tbody tr:last-child td { border-bottom:none; }
.tbl tbody tr:hover { background:var(--surface2); }
.tbl tbody tr { transition: background .1s; }

/* ---- MODAL ---- */
.modal-backdrop {
  position:  fixed;
  inset:     0;
  background: rgba(26,22,18,.55);
  backdrop-filter: blur(4px);
  z-index:   200;
  display:   none;
  align-items: center;
  justify-content: center;
  padding:   20px;
}
.modal-backdrop.open { display:flex; }

.modal {
  background: var(--surface);
  border:     2px solid var(--ink);
  border-radius: 6px;
  width:      100%;
  max-width:  620px;
  max-height: 90vh;
  overflow:   hidden;
  display:    flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  animation:  modalIn .25s cubic-bezier(.34,1.56,.64,1);
}

@keyframes modalIn {
  from { opacity:0; transform:scale(.93) translateY(16px); }
  to   { opacity:1; transform:scale(1)   translateY(0); }
}

.modal-head {
  background: var(--ink);
  color:      var(--bg);
  padding:    18px 24px;
  display:    flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.modal-head h2 { font-family:var(--font-head); font-size:17px; font-weight:800; }

.modal-close {
  background: none;
  border:     none;
  color:      var(--bg);
  font-size:  24px;
  cursor:     pointer;
  line-height:1;
  opacity:    .7;
}
.modal-close:hover { opacity:1; }

.modal-body { padding:26px 24px; overflow-y:auto; flex:1; }
.modal-foot { padding:16px 24px; border-top:1px solid var(--border); display:flex; justify-content:flex-end; gap:10px; flex-shrink:0; }

/* ---- TOAST ---- */
.toast-container {
  position:  fixed;
  bottom:    24px;
  right:     24px;
  z-index:   999;
  display:   flex;
  flex-direction: column;
  gap:       10px;
  pointer-events: none;
}

.toast {
  background: var(--ink);
  color:      var(--bg);
  padding:    13px 18px 13px 14px;
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size:  12px;
  border-left: 4px solid var(--accent);
  max-width:  320px;
  transform:  translateX(120%);
  opacity:    0;
  transition: all .35s cubic-bezier(.34,1.56,.64,1);
  pointer-events: auto;
}
.toast.show { transform:translateX(0); opacity:1; }
.toast.success { border-color:var(--green); }
.toast.error   { border-color:var(--red); }

/* ---- UPLOAD DROP ZONE ---- */
.drop-zone {
  border:      2px dashed var(--border2);
  border-radius: var(--radius);
  padding:     28px 20px;
  text-align:  center;
  cursor:      pointer;
  transition:  all .2s;
  background:  var(--bg);
}
.drop-zone:hover, .drop-zone.drag-over {
  border-color: var(--accent);
  background:   var(--accent-soft);
}
.drop-zone-icon { font-size:32px; margin-bottom:8px; }
.drop-zone-label { font-size:13px; color:var(--muted); }
.drop-zone-label strong { color:var(--ink); }

.file-preview-grid { display:flex; flex-wrap:wrap; gap:8px; margin-top:12px; }

.file-chip {
  display:     flex;
  align-items: center;
  gap:         6px;
  background:  var(--surface2);
  border:      1px solid var(--border);
  border-radius: var(--radius);
  padding:     5px 10px;
  font-size:   12px;
  font-family: var(--font-mono);
}

.file-chip .rm {
  cursor:  pointer;
  color:   var(--muted);
  font-size: 14px;
  line-height:1;
}
.file-chip .rm:hover { color: var(--red); }

/* ---- BLUR MASK ---- */
.blurred { filter: blur(5px); user-select:none; }

/* ---- EMPTY STATE ---- */
.empty-state {
  text-align:  center;
  padding:     60px 20px;
  color:       var(--muted);
}
.empty-icon { font-size:40px; margin-bottom:10px; }
.empty-label { font-family:var(--font-mono); font-size:13px; }

/* ---- HISTORY TIMELINE ---- */
.timeline { position:relative; padding-left:20px; }
.timeline::before { content:''; position:absolute; left:6px; top:4px; bottom:4px; width:2px; background:var(--border); }
.timeline-item { position:relative; margin-bottom:18px; }
.timeline-dot { position:absolute; left:-17px; top:4px; width:10px; height:10px; border-radius:50%; border:2px solid var(--bg); background:var(--muted); }
.timeline-dot.done  { background:var(--green); }
.timeline-dot.proc  { background:var(--blue); }
.timeline-dot.rev   { background:var(--red); }
.timeline-dot.queue { background:var(--gold); }
.timeline-time { font-family:var(--font-mono); font-size:10px; color:var(--muted); }
.timeline-text { font-size:13px; margin-top:2px; }



/* ---- CONVERSATION ---- */
.message-panel {
  margin-top: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface2);
  overflow: hidden;
}
.message-panel-head {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:12px 14px;
  background:var(--surface);
  border-bottom:1px solid var(--border);
}
.message-panel-title {
  font-family:var(--font-head);
  font-size:15px;
  font-weight:700;
}
.message-panel-sub {
  font-family:var(--font-mono);
  font-size:10px;
  color:var(--muted);
}
.message-thread {
  max-height: 320px;
  overflow:auto;
  padding:14px;
  display:flex;
  flex-direction:column;
  gap:12px;
}
.message-empty {
  padding:18px 14px;
  border:1px dashed var(--border2);
  border-radius:var(--radius);
  background:var(--surface);
  color:var(--muted);
  font-size:13px;
  text-align:center;
}
.message-item {
  display:flex;
}
.message-item.mine { justify-content:flex-end; }
.message-item.system { justify-content:center; }
.message-bubble {
  max-width:min(78%, 620px);
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:10px;
  padding:10px 12px;
  box-shadow:var(--shadow-sm);
}
.message-item.user .message-bubble {
  background:#fff;
}
.message-item.mine .message-bubble {
  background:var(--blue-soft);
  border-color:#93C5FD;
}
.message-item.internal .message-bubble {
  background:var(--gold-soft);
  border-color:#D4A800;
}
.message-item.system .message-bubble {
  max-width:100%;
  background:var(--accent-soft);
  border-color:#E7B9AF;
}
.message-meta {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:5px;
  font-family:var(--font-mono);
  font-size:10px;
  color:var(--muted);
}
.message-author {
  font-weight:500;
  color:var(--ink);
}
.message-text {
  font-size:13px;
  line-height:1.6;
  white-space:pre-wrap;
  word-break:break-word;
}
.message-bubble .file-preview-grid {
  margin-top:10px;
}
.message-composer {
  padding:14px;
  border-top:1px solid var(--border);
  background:var(--surface);
}
.message-composer textarea {
  min-height:92px;
  margin-bottom:10px;
}
.message-tools {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  flex-wrap:wrap;
}
.message-tools-left {
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}
.detail-actions {
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}
.inline-file-input {
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size:12px;
  color:var(--muted);
}
.inline-file-input input[type=file] {
  max-width: 220px;
}
.helper-note {
  font-size:12px;
  color:var(--muted);
}
.checkbox-inline {
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size:12px;
  color:var(--ink);
}
@media (max-width: 760px) {
  .message-bubble { max-width: 100%; }
  .message-panel-head,
  .message-tools { align-items:flex-start; }
  .message-tools-right,
  .message-tools .btn { width:100%; }
}


/* ---- NOTIFICATIONS ---- */
.notif-section {
  margin-top: 16px;
  display: none;
}
.notif-section.open {
  display: block;
}
.notif-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.notif-head {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  padding:14px 16px;
  border-bottom:1px solid var(--border);
  background:var(--surface2);
  flex-wrap:wrap;
}
.notif-head-actions {
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  align-items:center;
  justify-content:flex-end;
}
.notif-toolbar {
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  align-items:center;
  padding:12px 16px;
  border-bottom:1px solid var(--border);
  background:rgba(255,255,255,.35);
}
.notif-filter-btn {
  display:inline-flex;
  align-items:center;
  gap:8px;
}
.notif-unread-pill {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:18px;
  height:18px;
  padding:0 6px;
  border-radius:999px;
  background:var(--surface2);
  color:var(--muted);
  font-size:10px;
  font-family:var(--font-mono);
  line-height:1;
}
.filter-btn.active .notif-unread-pill {
  background:rgba(255,255,255,.18);
  color:var(--bg);
}
.notif-title-wrap { display:flex; flex-direction:column; gap:2px; }
.notif-title {
  font-family:var(--font-head);
  font-size:16px;
  font-weight:700;
}
.notif-subtitle {
  font-family:var(--font-mono);
  font-size:11px;
  color:var(--muted);
}
.notif-list {
  display:flex;
  flex-direction:column;
}
.notif-item {
  display:grid;
  grid-template-columns:auto 1fr auto;
  gap:12px;
  padding:14px 16px;
  border-bottom:1px solid var(--border);
  align-items:start;
}
.notif-item.is-unread {
  background:rgba(200,75,47,.05);
  border-left:3px solid var(--accent);
  padding-left:13px;
}
.notif-item:last-child { border-bottom:none; }
.notif-item:hover { background:var(--surface2); }
.notif-icon {
  width:36px;
  height:36px;
  border-radius:10px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:18px;
  background:var(--accent-soft);
}
.notif-icon.status { background:var(--gold-soft); }
.notif-icon.ticket { background:var(--blue-soft); }
.notif-icon.conversation { background:var(--green-soft); }
.notif-body { min-width:0; }
.notif-item-head {
  display:flex;
  gap:8px;
  align-items:flex-start;
  justify-content:space-between;
  flex-wrap:wrap;
}
.notif-status-tag {
  display:inline-flex;
  align-items:center;
  gap:6px;
  border:1px solid var(--border);
  border-radius:999px;
  padding:3px 8px;
  font-family:var(--font-mono);
  font-size:10px;
  color:var(--muted);
  background:var(--surface);
}
.notif-status-tag.unread {
  border-color:var(--accent);
  color:var(--accent);
  background:var(--accent-soft);
}
.notif-actions {
  display:flex;
  flex-direction:column;
  gap:8px;
  align-items:flex-end;
  min-width:124px;
}
.notif-actions .btn {
  min-width:124px;
  justify-content:center;
}
.notif-actions .btn[disabled] {
  opacity:.55;
  cursor:default;
}
.notif-item-title {
  font-family:var(--font-head);
  font-size:14px;
  font-weight:700;
  margin-bottom:4px;
}
.notif-item-text {
  font-size:13px;
  line-height:1.6;
  color:var(--ink);
}
.notif-item-meta {
  margin-top:6px;
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  align-items:center;
  font-family:var(--font-mono);
  font-size:10px;
  color:var(--muted);
}
.notif-link {
  white-space:nowrap;
  align-self:center;
}
.notif-badge-count {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:18px;
  height:18px;
  padding:0 6px;
  border-radius:999px;
  background:var(--accent);
  color:#fff;
  font-size:10px;
  font-family:var(--font-mono);
  line-height:1;
}
.filter-btn.with-count {
  display:inline-flex;
  align-items:center;
  gap:8px;
}
@media (max-width: 760px) {
  .notif-item {
    grid-template-columns:auto 1fr;
  }
  .notif-actions {
    grid-column:2;
    align-items:stretch;
    min-width:0;
  }
  .notif-actions .btn {
    min-width:0;
    width:100%;
  }
  .notif-link {
    justify-self:start;
  }
  .notif-head {
    align-items:flex-start;
    flex-direction:column;
  }
  .notif-head-actions {
    width:100%;
    justify-content:flex-start;
  }
  .notif-toolbar {
    align-items:stretch;
  }
}

/* ---- PAGINATION ---- */
.pagination { display:flex; gap:6px; align-items:center; justify-content:flex-end; margin-top:16px; font-family:var(--font-mono); font-size:12px; }
.pg-btn { padding:5px 12px; border:1.5px solid var(--border); border-radius:var(--radius); background:var(--surface); cursor:pointer; transition:all .15s; }
.pg-btn:hover { border-color:var(--ink); }
.pg-btn.active { background:var(--ink); color:var(--bg); border-color:var(--ink); }
.pg-btn:disabled { opacity:.4; cursor:not-allowed; }

/* ---- RESPONSIVE ---- */
@media (max-width:900px) {
  .topbar {
    padding:12px 16px;
    display:grid;
    grid-template-columns:1fr auto;
    align-items:start;
    gap:12px;
  }
  .topbar-logo {
    font-size:17px;
    line-height:1.2;
    min-width:0;
  }
  .topbar-nav {
    grid-column:1 / -1;
    width:100%;
    display:grid !important;
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:8px;
  }
  .topbar-nav .nav-btn {
    width:100%;
    justify-content:center;
  }
  .topbar-right {
    min-width:0;
    justify-content:flex-end;
    gap:10px;
  }
  .topbar-user {
    font-size:11px;
    overflow-wrap:anywhere;
    text-align:right;
  }
  .page-wrap { padding:16px; }
}

@media (max-width:640px) {
  .topbar {
    grid-template-columns:1fr;
  }
  .topbar-logo {
    width:100%;
    gap:6px;
  }
  .topbar-right {
    width:100%;
    display:grid;
    grid-template-columns:minmax(0, 1fr) auto;
    align-items:center;
  }
  .topbar-user {
    text-align:left;
  }
  .stat-grid { grid-template-columns:1fr; }
}

body.modal-open { overflow:hidden; }

.btn[disabled],
button[disabled] {
  opacity:.55;
  cursor:not-allowed;
  transform:none !important;
  box-shadow:none !important;
}

@media (max-width:768px) {
  .topbar {
    padding:12px 16px;
    align-items:stretch;
    gap:12px;
  }
  .topbar-logo {
    width:100%;
    max-width:100%;
    font-size:17px;
    line-height:1.2;
    gap:6px;
  }
  .topbar-nav {
    width:100%;
    display:grid !important;
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:8px;
  }
  .topbar-nav .nav-btn {
    width:100%;
    justify-content:center;
    min-width:0;
  }
  .topbar-right {
    width:100%;
    justify-content:space-between;
    gap:10px;
    flex-wrap:wrap;
  }
  .topbar-user {
    display:block;
    font-size:11px;
    max-width:100%;
    overflow-wrap:anywhere;
  }
  .btn,
  .btn-logout {
    white-space:normal;
  }
}

@media (max-width:560px) {
  .topbar-logo {
    font-size:16px;
  }
  .topbar-right {
    display:grid;
    grid-template-columns:minmax(0, 1fr) auto;
    align-items:center;
  }
  .topbar-user {
    display:block;
    min-width:0;
  }
}
