/* Armerillo UI - Base refinada 2026 */
:root{
  --bg0:#050814;
  --bg1:#0a1026;

  --glass:rgba(255,255,255,.06);
  --glass2:rgba(255,255,255,.08);
  --stroke:rgba(255,255,255,.10);
  --stroke2:rgba(255,255,255,.16);

  --text:#e5e7eb;
  --muted:#94a3b8;

  --neon:#2dd4ff;
  --emerald:#10b981;

  --danger:#ef4444;
  --warn:#f59e0b;

  --shadow:0 18px 60px rgba(0,0,0,.55);

  --radius:18px;
  --radius2:24px;

  --select-surface:#0b1220;
  --select-surface-2:#0f172a;
  --select-text:#e5e7eb;
  --select-muted:#9aa6bd;
  --select-border:rgba(255,255,255,.14);

  --content-max:1280px;
  --space-1:6px;
  --space-2:10px;
  --space-3:14px;
  --space-4:18px;
  --space-5:24px;
  --space-6:30px;
}

:root[data-theme="light"]{
  --bg0:#f3efe6;
  --bg1:#e7e0d3;

  --glass:rgba(20,18,12,.05);
  --glass2:rgba(20,18,12,.08);
  --stroke:rgba(20,18,12,.12);
  --stroke2:rgba(20,18,12,.16);

  --text:#14120c;
  --muted:#4b4a43;

  --shadow:0 18px 60px rgba(20,18,12,.18);

  --select-surface:#efe7da;
  --select-surface-2:#e6dccd;
  --select-text:#14120c;
  --select-muted:#4b4a43;
  --select-border:rgba(20,18,12,.16);
}

*,
*::before,
*::after{
  box-sizing:border-box;
}

html,
body{
  height:100%;
}

html{
  -webkit-text-size-adjust:100%;
  scroll-behavior:smooth;
}

body{
  margin:0;
  font-family:ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;
  color:var(--text);
  line-height:1.45;
  background:
    radial-gradient(1200px 800px at 20% 10%, rgba(45,212,255,.18), transparent 55%),
    radial-gradient(900px 700px at 80% 20%, rgba(16,185,129,.14), transparent 55%),
    radial-gradient(800px 600px at 60% 90%, rgba(99,102,241,.10), transparent 55%),
    linear-gradient(180deg, var(--bg0), var(--bg1));
  overflow-x:hidden;
}

:root[data-theme="light"] body{
  background:
    radial-gradient(1200px 800px at 20% 10%, rgba(45,212,255,.10), transparent 55%),
    radial-gradient(900px 700px at 80% 20%, rgba(16,185,129,.08), transparent 55%),
    linear-gradient(180deg, var(--bg0), var(--bg1));
}

body::before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size:64px 64px;
  mask-image:radial-gradient(circle at 40% 20%, black 0%, transparent 70%);
  -webkit-mask-image:radial-gradient(circle at 40% 20%, black 0%, transparent 70%);
  opacity:.18;
}

:root[data-theme="light"] body::before{
  background-image:
    linear-gradient(to right, rgba(20,18,12,.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(20,18,12,.06) 1px, transparent 1px);
  opacity:.08;
}

img{
  max-width:100%;
  height:auto;
  display:block;
}

a{
  color:inherit;
  text-decoration:none;
}

a:hover{
  color:var(--neon);
}

hr{
  border:0;
  border-top:1px solid rgba(255,255,255,.10);
  margin:18px 0;
}

:root[data-theme="light"] hr{
  border-top:1px solid rgba(20,18,12,.10);
}

/* ===== App shell ===== */
.app-shell{
  display:grid;
  grid-template-columns:280px minmax(0,1fr);
  min-height:100vh;
}

.container{
  width:100%;
  max-width:var(--content-max);
  margin:0 auto;
  padding:22px 22px 36px;
}

.main-content,
.content,
.page-content{
  min-width:0;
}

/* ===== Topbar ===== */
.topbar{
  position:sticky;
  top:0;
  z-index:50;
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
  background:rgba(5,8,20,.55);
  border-bottom:1px solid rgba(255,255,255,.08);
}

:root[data-theme="light"] .topbar{
  background:rgba(243,239,230,.78);
  border-bottom:1px solid rgba(20,18,12,.10);
}

.topbar-inner{
  max-width:var(--content-max);
  margin:0 auto;
  display:flex;
  align-items:center;
  gap:12px;
  padding:12px 16px;
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:900;
  letter-spacing:.4px;
  min-width:0;
}

.brand-badge{
  width:34px;
  height:34px;
  border-radius:12px;
  flex:0 0 34px;
  background:linear-gradient(135deg, rgba(45,212,255,.30), rgba(16,185,129,.22));
  border:1px solid rgba(255,255,255,.16);
  box-shadow:0 10px 30px rgba(0,0,0,.35);
}

.nav{
  margin-left:auto;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
  flex-wrap:wrap;
  min-width:0;
}

.nav a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:40px;
  padding:9px 14px;
  border-radius:14px;
  color:var(--muted);
  border:1px solid transparent;
  white-space:nowrap;
  transition:transform .16s ease, background .16s ease, border-color .16s ease, color .16s ease;
}

.nav a:hover{
  color:var(--text);
  background:rgba(255,255,255,.05);
  border-color:rgba(255,255,255,.10);
  transform:translateY(-1px);
}

.nav a.active{
  color:var(--text);
  background:rgba(255,255,255,.06);
  border-color:rgba(45,212,255,.24);
}

.backbtn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:40px;
  padding:9px 14px;
  border-radius:14px;
  color:var(--text);
  white-space:nowrap;
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.10);
  transition:transform .16s ease, border-color .16s ease;
}

.backbtn:hover{
  transform:translateY(-1px);
  border-color:rgba(45,212,255,.25);
}

/* ===== Sidebar ===== */
.sidebar{
  position:sticky;
  top:0;
  height:100vh;
  padding:16px 14px;
  border-right:1px solid rgba(255,255,255,.08);
  background:
    radial-gradient(700px 500px at 20% 10%, rgba(45,212,255,.10), transparent 60%),
    radial-gradient(600px 450px at 90% 90%, rgba(16,185,129,.08), transparent 60%),
    rgba(5,8,20,.50);
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
  overflow-y:auto;
}

:root[data-theme="light"] .sidebar{
  background:
    radial-gradient(700px 500px at 20% 10%, rgba(45,212,255,.08), transparent 60%),
    radial-gradient(600px 450px at 90% 90%, rgba(16,185,129,.06), transparent 60%),
    rgba(243,239,230,.86);
  border-right:1px solid rgba(20,18,12,.10);
}

.side-head{
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:12px;
}

.side-title{
  font-weight:900;
  letter-spacing:.4px;
}

.side-sub{
  color:var(--muted);
  font-size:12px;
  margin-top:2px;
}

.side-search{
  margin:12px 0 16px;
}

.side-search input{
  width:100%;
  min-height:42px;
  padding:11px 12px;
  border-radius:16px;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.12);
  color:var(--text);
  outline:none;
}

:root[data-theme="light"] .side-search input{
  background:rgba(20,18,12,.05);
  border:1px solid rgba(20,18,12,.12);
}

.side-search input:focus{
  border-color:rgba(45,212,255,.36);
  box-shadow:0 0 0 4px rgba(45,212,255,.10);
}

.side-nav{
  display:grid;
  gap:8px;
}

.side-link{
  display:flex;
  align-items:center;
  gap:10px;
  min-height:42px;
  padding:10px 12px;
  border-radius:16px;
  border:1px solid transparent;
  color:var(--muted);
  background:rgba(255,255,255,.03);
  transition:.16s;
}

:root[data-theme="light"] .side-link{
  background:rgba(20,18,12,.04);
}

.side-link:hover{
  color:var(--text);
  border-color:rgba(255,255,255,.12);
  background:rgba(255,255,255,.05);
}

:root[data-theme="light"] .side-link:hover{
  border-color:rgba(20,18,12,.14);
  background:rgba(20,18,12,.06);
}

.side-link.active{
  color:var(--text);
  border-color:rgba(45,212,255,.24);
  background:rgba(255,255,255,.06);
}

.side-icon{
  width:18px;
  height:18px;
  opacity:.9;
  flex:0 0 18px;
}

.side-foot{
  margin-top:16px;
  padding-top:12px;
  border-top:1px solid rgba(255,255,255,.10);
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

:root[data-theme="light"] .side-foot{
  border-top:1px solid rgba(20,18,12,.10);
}

.side-chip{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:36px;
  padding:8px 10px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.04);
  color:var(--muted);
  font-size:12px;
  cursor:pointer;
  user-select:none;
}

:root[data-theme="light"] .side-chip{
  border:1px solid rgba(20,18,12,.12);
  background:rgba(20,18,12,.04);
}

.side-chip:hover{
  border-color:rgba(45,212,255,.22);
  color:var(--text);
}

.mobilebar{
  display:none !important;
}

/* ===== Typography ===== */
h1,
h2,
h3,
h4,
h5,
h6{
  margin:0;
  line-height:1.2;
}

h1{
  font-size:clamp(26px, 3vw, 34px);
  margin-bottom:10px;
}

h2{
  font-size:clamp(18px, 2vw, 22px);
  margin-bottom:10px;
}

h3{
  font-size:16px;
  margin-bottom:8px;
}

p{
  margin:0 0 12px;
}

.small,
.text-small{
  font-size:13px;
}

.muted{
  color:var(--muted);
}

/* ===== Cards ===== */
.card,
.subcard{
  background:var(--glass);
  border:1px solid var(--stroke);
  border-radius:var(--radius2);
  box-shadow:var(--shadow);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
  min-width:0;
}

.card{
  padding:20px;
  margin:18px 0;
  display:flex;
  flex-direction:column;
  gap:16px;
}

.subcard{
  padding:16px;
}

.card-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
}

.card-body{
  padding:0;
}

.card > h1,
.card > h2,
.card > h3{
  margin:0;
}

.card > h1 + *,
.card > h2 + *,
.card > h3 + *{
  margin-top:10px;
}

/* ===== Helpers ===== */
.hidden{
  display:none !important;
}

.w-full{
  width:100%;
}

.text-right{
  text-align:right;
}

.text-center{
  text-align:center;
}

.nowrap{
  white-space:nowrap;
}

.stack-xs > * + *{
  margin-top:8px;
}

.stack-sm > * + *{
  margin-top:12px;
}

.stack-md > * + *{
  margin-top:16px;
}

.stack-lg > * + *{
  margin-top:22px;
}

.actions,
.btn-group,
.section-toolbar,
.inventory-top-actions,
.reports-top-actions,
.personal-toolbar,
.personal-actions,
.inventory-actions,
.report-actions,
.report-toolbar,
.search-actions{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:12px;
}

.actions,
.btn-group,
.section-toolbar,
.inventory-top-actions,
.reports-top-actions,
.personal-toolbar,
.personal-actions,
.inventory-actions,
.report-actions,
.report-toolbar{
  margin:12px 0 16px;
}

.form-stack{
  display:flex;
  flex-direction:column;
  gap:12px;
}

.action-stack{
  display:flex;
  flex-direction:column;
  gap:14px;
}

/* ===== Grid helpers ===== */
.grid2{
  display:grid;
  grid-template-columns:repeat(2, minmax(0,1fr));
  gap:18px;
}

.grid3{
  display:grid;
  grid-template-columns:repeat(3, minmax(0,1fr));
  gap:18px;
}

.grid4{
  display:grid;
  grid-template-columns:repeat(4, minmax(0,1fr));
  gap:18px;
}

.col-span-2{
  grid-column:span 2;
}

.col-span-3{
  grid-column:span 3;
}

/* ===== Forms ===== */
form{
  min-width:0;
}

label{
  display:block;
  margin:0 0 8px;
  color:var(--muted);
  font-size:13px;
  font-weight:600;
  line-height:1.35;
}

input,
select,
textarea,
button{
  font:inherit;
}

.input,
select.input,
textarea.input{
  display:block;
  width:100%;
  min-width:0;
  min-height:44px;
  padding:12px 14px;
  border-radius:14px;
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.15);
  color:var(--text);
  outline:none;
  transition:border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

textarea.input{
  min-height:110px;
  resize:vertical;
}

:root[data-theme="light"] .input,
:root[data-theme="light"] select.input,
:root[data-theme="light"] textarea.input{
  background:rgba(20,18,12,.05);
  border:1px solid rgba(20,18,12,.14);
}

.input:focus,
select.input:focus,
textarea.input:focus{
  border-color:rgba(45,212,255,.40);
  box-shadow:0 0 0 4px rgba(45,212,255,.12);
  background:rgba(255,255,255,.07);
}

:root[data-theme="light"] .input:focus,
:root[data-theme="light"] select.input:focus,
:root[data-theme="light"] textarea.input:focus{
  background:rgba(20,18,12,.06);
}

.form-row,
.field-row{
  display:grid;
  grid-template-columns:repeat(2, minmax(0,1fr));
  gap:16px;
  align-items:start;
}

.form-col,
.field{
  min-width:0;
}

.form-group,
.field-group{
  display:flex;
  flex-direction:column;
  gap:8px;
  min-width:0;
}

.checkbox-row{
  display:flex;
  align-items:center;
  gap:10px;
  min-height:22px;
  margin-top:4px;
}

.checkbox-row input[type="checkbox"]{
  width:16px;
  height:16px;
  margin:0;
  accent-color:var(--neon);
}

.checkbox-row label{
  margin:0;
  color:var(--text);
  font-weight:500;
}

.help,
.field-help{
  display:block;
  margin-top:6px;
  color:var(--muted);
  font-size:12px;
  line-height:1.35;
}

.form-actions{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:12px;
  margin-top:14px;
}

form > .btn,
form > .btn-group,
form > .actions,
form > .search-actions,
form > .form-actions{
  margin-top:8px;
}

.input + .btn,
.input + .btn-group,
.input + .actions,
select + .btn,
textarea + .btn{
  margin-top:10px;
}

form .btn + .btn{
  margin-left:0;
}

/* ===== Select popup ===== */
select,
option,
optgroup{
  color:var(--select-text);
  background-color:var(--select-surface);
}

optgroup{
  font-weight:800;
  color:var(--select-text);
}

option{
  padding:10px 12px;
}

option:checked,
option:hover{
  background-color:var(--select-surface-2);
  color:var(--select-text);
}

select.input{
  color:var(--text);
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.15);
  accent-color:var(--neon);
}

:root[data-theme="light"] select.input{
  background:rgba(20,18,12,.05);
  border:1px solid rgba(20,18,12,.14);
}

:root[data-theme="light"] option,
:root[data-theme="light"] optgroup{
  background-color:var(--select-surface);
  color:var(--select-text);
}

/* ===== Buttons ===== */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:42px;
  padding:10px 16px;
  border-radius:14px;
  font-weight:700;
  line-height:1.1;
  background:linear-gradient(135deg, rgba(45,212,255,.22), rgba(16,185,129,.14));
  border:1px solid rgba(255,255,255,.18);
  color:var(--text);
  cursor:pointer;
  white-space:nowrap;
  transition:transform .16s ease, filter .16s ease, border-color .16s ease, background .16s ease;
}

.btn:hover{
  transform:translateY(-2px);
  border-color:rgba(45,212,255,.40);
}

.btn:active{
  transform:translateY(0);
}

.btn-outline{
  background:rgba(255,255,255,.05);
}

.btn-primary{
  background:linear-gradient(135deg, rgba(45,212,255,.30), rgba(37,99,235,.22));
}

.btn-success{
  background:linear-gradient(135deg, rgba(16,185,129,.28), rgba(5,150,105,.22));
}

.btn-warning{
  background:linear-gradient(135deg, rgba(245,158,11,.28), rgba(249,115,22,.22));
}

.btn-danger{
  background:linear-gradient(135deg, rgba(239,68,68,.28), rgba(220,38,38,.22));
  border-color:rgba(239,68,68,.30);
}

.btn-sm,
.btn-small{
  min-height:36px;
  padding:8px 12px;
  border-radius:12px;
  font-size:13px;
}

.btn-block{
  width:100%;
}

:root[data-theme="light"] .btn{
  border-color:rgba(20,18,12,.18);
}

:root[data-theme="light"] .btn-outline{
  background:rgba(20,18,12,.05);
}

.btn-print,
a.btn-print,
button.btn-print,
.dotacion-btn,
a.dotacion-btn,
button.dotacion-btn{
  margin-top:12px !important;
  margin-bottom:6px !important;
}

/* ===== Alerts ===== */
.alert,
.notice{
  border-radius:16px;
  padding:12px 14px;
  margin:12px 0;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.05);
}

.alert.error{
  border-color:rgba(239,68,68,.35);
  background:rgba(239,68,68,.10);
}

.alert.notice,
.notice{
  border-color:rgba(16,185,129,.28);
  background:rgba(16,185,129,.08);
}

/* ===== Tables ===== */
.table-wrap{
  width:100%;
  overflow:auto;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.02);
}

:root[data-theme="light"] .table-wrap{
  border:1px solid rgba(20,18,12,.10);
  background:rgba(20,18,12,.02);
}

.table,
.table-wrap table{
  width:100%;
  min-width:720px;
  border-collapse:collapse;
  overflow:hidden;
  border-radius:18px;
}

.table th,
.table td,
.table-wrap table th,
.table-wrap table td{
  padding:12px 10px;
  border-bottom:1px solid rgba(255,255,255,.08);
  text-align:left;
  vertical-align:top;
  line-height:1.35;
}

.table thead th,
.table-wrap thead th{
  position:sticky;
  top:0;
  z-index:1;
  background:rgba(5,8,20,.78);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  color:var(--muted);
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.08em;
}

:root[data-theme="light"] .table thead th,
:root[data-theme="light"] .table-wrap thead th{
  background:rgba(231,224,211,.82);
  color:rgba(20,18,12,.72);
}

.table tbody tr:hover,
.table-wrap tbody tr:hover{
  background:rgba(255,255,255,.04);
}

:root[data-theme="light"] .table tbody tr:hover,
:root[data-theme="light"] .table-wrap tbody tr:hover{
  background:rgba(20,18,12,.04);
}

.table td .btn,
.table-wrap td .btn,
.td-actions .btn{
  margin:4px 6px 4px 0;
}

.td-actions{
  white-space:nowrap;
}

/* ===== Dashboard ===== */
.dashboard-body{
  background-image:
    radial-gradient(1200px 800px at 20% 10%, rgba(45,212,255,.16), transparent 55%),
    radial-gradient(900px 700px at 80% 20%, rgba(16,185,129,.12), transparent 55%),
    linear-gradient(rgba(5,8,20,.86), rgba(5,8,20,.90)),
    url("../img/imagen2.png");
  background-size:cover;
  background-position:center;
  background-attachment:fixed;
}

.dashboard-body .card,
.dashboard-body .subcard{
  background:rgba(255,255,255,.07);
}

.dash-center{
  max-width:860px;
  margin:10px auto 0;
}

.dash-title{
  text-align:center;
  margin-bottom:10px;
}

.dash-title .muted{
  display:block;
  margin-top:4px;
}

.quick-grid{
  display:grid;
  grid-template-columns:repeat(4, minmax(0,1fr));
  gap:12px;
  margin-top:14px;
}

.quick-grid .btn{
  width:100%;
}

/* ===== Secciones específicas ===== */
.inventory .card,
.inventory .subcard,
.personal .card,
.personal .subcard,
.reports .card,
.reports .subcard{
  min-width:0;
}

.inventory .grid3 > .subcard,
.inventory .grid2 > .subcard{
  display:flex;
  flex-direction:column;
  gap:10px;
  min-width:0;
}

.inventory .grid3 > .subcard form,
.inventory .grid2 > .subcard form,
.reports form,
.personal-quick-form{
  display:flex;
  flex-direction:column;
  gap:10px;
  min-width:0;
}

.inventory .grid3 > .subcard form .btn,
.inventory .grid2 > .subcard form .btn,
.reports form .btn,
.personal-quick-form .btn{
  align-self:flex-start;
  margin-top:6px;
}

.inventory .card .grid3,
.inventory .card .grid2{
  margin-top:12px;
}

.inventory .input + .btn,
.inventory input + .btn,
.inventory select + .btn,
.personal .input + .btn,
.reports .input + .btn{
  margin-top:12px;
}

.personal-detail-shell{
  display:grid;
  grid-template-columns:minmax(300px, 380px) minmax(420px, 1fr);
  gap:18px;
  align-items:start;
}

.personal-info-panel,
.personal-actions-panel{
  min-width:0;
}

.personal-stats{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:10px;
}

.personal-meta{
  display:grid;
  grid-template-columns:1fr;
  gap:10px;
  margin-top:12px;
}

.personal-actions-panel .muted{
  margin-bottom:2px;
}

.personal-actions-panel .btn{
  align-self:flex-start;
}

.personal-actions-panel .row,
.personal-detail-shell .row{
  margin:0;
}

.card h2 + .table-wrap,
.card h2 + table,
.card h3 + .table-wrap,
.card h3 + table{
  margin-top:10px;
}

.inventory-totals .card{
  gap:12px;
}

.inventory-totals .card + .card{
  margin-top:18px;
}

.inventory-totals .table-wrap,
.inventory-totals .tgrid{
  margin-top:10px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.03);
}

:root[data-theme="light"] .inventory-totals .table-wrap,
:root[data-theme="light"] .inventory-totals .tgrid{
  border:1px solid rgba(20,18,12,.14);
  background:rgba(20,18,12,.03);
}

/* ===== Print / report pages ===== */
.report-page,
.print-page{
  width:100%;
  max-width:1100px;
  margin:0 auto;
  padding:18px 18px 40px;
}

.report-page .topbar,
.print-page .topbar{
  position:relative;
}

.report-page .table-wrap,
.print-page .table-wrap{
  margin-top:12px;
}

/* ===== Responsive ===== */
@media (max-width:1180px){
  .container{
    padding:20px 18px 30px;
  }

  .grid4{
    grid-template-columns:repeat(2, minmax(0,1fr));
  }

  .personal-detail-shell{
    grid-template-columns:1fr;
  }
}

@media (max-width:980px){
  .app-shell{
    grid-template-columns:1fr;
  }

  .sidebar{
    position:relative;
    top:auto;
    height:auto;
    overflow:visible;
  }

  .topbar-inner{
    align-items:flex-start;
    flex-wrap:wrap;
  }

  .nav{
    width:100%;
    margin-left:0;
    justify-content:flex-start;
  }

  .grid3{
    grid-template-columns:1fr 1fr;
  }

  .grid2,
  .form-row,
  .field-row{
    grid-template-columns:1fr;
  }

  .col-span-2,
  .col-span-3{
    grid-column:auto;
  }

  .table,
  .table-wrap table{
    min-width:680px;
  }
}

@media (max-width:760px){
  .container{
    padding:16px 14px 24px;
  }

  .card{
    padding:16px;
  }

  .subcard{
    padding:14px;
  }

  .grid3,
  .grid4,
  .quick-grid{
    grid-template-columns:1fr;
  }

  .actions,
  .btn-group,
  .section-toolbar,
  .inventory-top-actions,
  .reports-top-actions,
  .personal-toolbar,
  .personal-actions,
  .inventory-actions,
  .report-actions,
  .report-toolbar,
  .search-actions,
  .form-actions{
    gap:10px;
  }

  .btn{
    max-width:100%;
  }

  .table,
  .table-wrap table{
    min-width:620px;
  }
}

@media (max-width:520px){
  .topbar-inner{
    padding:10px 12px;
  }

  .brand{
    width:100%;
  }

  .nav a,
  .backbtn{
    padding:8px 12px;
  }

  h1{
    font-size:24px;
  }

  .card{
    border-radius:18px;
  }

  .subcard{
    border-radius:16px;
  }

  .btn{
    width:100%;
  }

  .btn-group .btn,
  .actions .btn,
  .report-actions .btn,
  .report-toolbar .btn,
  .inventory-top-actions .btn,
  .reports-top-actions .btn,
  .personal-toolbar .btn,
  .search-actions .btn,
  .form-actions .btn{
    width:100%;
  }

  .table,
  .table-wrap table{
    min-width:560px;
  }
}