/* A fixed, branded rail on wide screens; a dismissible drawer on tablets.
   Content always stays inside the actual viewport, not the menu's intrinsic width. */
.app-shell { width: calc(100% - 252px); max-width: none; min-width: 0; margin-left: 252px; margin-right: 0; padding: 28px; }
.app-shell > * { min-width: 0; }
.topbar { gap: 16px; align-items: center; min-width: 0; }
.brand { min-width: 0; max-width: 100%; }
.brand > img { flex-shrink: 0; }
.brand > div { min-width: 0; }
.brand h1 { overflow-wrap: anywhere; }
.side-navigation { position: fixed; inset: 0 auto 0 0; width: 252px; padding: 24px 16px; overflow-y: auto; overscroll-behavior: contain; background: #241f1d; color: #fffdfa; z-index: 40; }
.side-navigation[hidden],.side-navigation-backdrop[hidden]{display:none!important}
.side-navigation__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 6px 20px; margin-bottom: 16px; border-bottom: 1px solid #655448; }
.side-navigation__head .eyebrow { color: #d4b791; font-size: .68rem; }
.side-navigation__head h2 { margin: 0; color: #fffdfa; font-size: 1.25rem; }
.side-navigation .top-actions { display: flex; flex-direction: column; flex-wrap: nowrap; width: 100%; min-width: 0; max-width: 100%; gap: 10px; overflow: visible; align-items: stretch; padding: 0; }
.side-navigation .top-actions > button { flex: 0 0 auto; width: 100%; min-width: 0; max-width: 100%; min-height: 44px; padding: 12px 13px!important; text-align: left; white-space: normal; overflow-wrap: anywhere; font: 700 .84rem Georgia,serif; border: 1px solid #78634f; border-radius: 10px!important; background: #302823; color: #f7eee2; cursor: pointer; }
.side-navigation .top-actions > button:hover,.side-navigation .top-actions > button:focus-visible { background: #4b3b2e; color: #fff; }
.side-navigation .top-actions > button[aria-current="page"] { background: #ead8bd; border-color: #ead8bd; color: #302317; }
.side-navigation .top-actions > button:disabled { opacity: .5; cursor: not-allowed; }
.side-navigation .top-actions > .new-dna { background: #f7f0e7; color: #34271e; }
.side-navigation .top-actions > .alert-bell { display: flex; align-items: center; gap: 9px; height: auto; }
.side-navigation .alert-bell svg { width: 20px; height: 20px; flex: 0 0 20px; }
.side-navigation .alert-bell__count { position: static; margin-left: auto; order: 2; }
.side-navigation .logout-status { color: #f0c5bb; max-width: 100%; overflow-wrap: anywhere; }
.side-navigation__toggle,.side-navigation__close { display: none; min-height: 44px; min-width: 44px; border: 1px solid #bba889; border-radius: 9px; padding: 9px 13px; font: 700 .9rem Georgia,serif; cursor: pointer; }
.side-navigation__toggle { background: #fffdfa; color: #4d3928; white-space: nowrap; }
.side-navigation__close { background: transparent; color: #fffdfa; font-size: 1.6rem; padding: 2px 10px; }
.side-navigation button:focus-visible,.side-navigation__toggle:focus-visible { outline: 3px solid #c49d67; outline-offset: 3px; }
.side-navigation-backdrop { position: fixed; inset: 0; border: 0; background: rgb(0 0 0 / .45); z-index: 39; width: 100%; height: 100%; }
.home-dashboard,.manager-dashboard,.operation-dashboard,.pop-center,.video-center,.workspace { width: 100%; min-width: 0; }
.workspace > *, .home-dashboard__hero > * { min-width: 0; }
@media (min-width: 801px) { .workspace { grid-template-columns: minmax(260px, 340px) minmax(0, 1fr); } }
@media (max-width: 1200px) {
  .app-shell { width: 100%; margin-left: 0; padding: 24px; }
  .side-navigation { width: min(290px, 88vw); box-shadow: 8px 0 32px #0004; }
  .side-navigation__toggle,.side-navigation__close { display: block; }
  .topbar { flex-wrap: wrap; justify-content: flex-start; }
  .topbar > .brand { flex: 1 1 240px; }
  body.side-navigation-open { overflow: hidden; }
}
@media (max-width: 800px) { .app-shell { padding: 18px; } .topbar { flex-direction: row; align-items: center; } }
@media print { .side-navigation,.side-navigation__toggle,.side-navigation-backdrop{display:none!important}.app-shell{width:100%;margin:0;padding:0} }
/* Nested DNA grids must shrink too: the obligations table keeps its own scroll. */
.workspace .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.workspace .grid > *, .workspace .detail > *, .workspace .detail-head > * { min-width: 0; }
.workspace .detail-actions { flex-wrap: wrap; max-width: 100%; }
.workspace .facts div { grid-template-columns: minmax(0, 145px) minmax(0, 1fr); }
@media (max-width: 800px) {
  .workspace .grid { grid-template-columns: minmax(0, 1fr); }
  .workspace .facts div { grid-template-columns: minmax(0, 1fr); }
}
