:root { --navy:#123b63; --blue:#176ca5; --paper:#fff; --ink:#12304f; --line:#d6e2ed; --bg:#edf3f8; }
* { box-sizing:border-box; }
body { margin:0; min-height:100vh; color:var(--ink); background:var(--bg); font-family:Segoe UI, Candara, sans-serif; }
.login-page { display:grid; place-items:center; padding:24px; background:linear-gradient(135deg,#0e3458,#1e79b6); }
.login-card { width:min(440px,100%); padding:42px; border-radius:18px; background:var(--paper); box-shadow:0 22px 60px #071e3380; }
.notice-mini { padding:12px 14px; border:1px solid #e7bd78; border-left:5px solid #d6901d; border-radius:10px; color:#704600; background:#fff8e6; font-size:14px; line-height:1.45; }
.activation-card { width:min(560px,100%); }.login-help { margin:18px 0 0; color:#587a98; font-size:14px; }.login-help a { color:#176ca5; font-weight:700; }
h1 { margin:5px 0 8px; font-size:32px; } h1 span,.brand span { color:#55b4ee; }
.eyebrow,.scope { margin:0; color:#47769b; font-weight:700; font-size:12px; letter-spacing:.08em; }
.muted { color:#587a98; line-height:1.5; }.form-stack { display:grid; gap:16px; margin:28px 0; } label { display:grid; gap:7px; font-weight:600; }
input { height:46px; border:1px solid #b8cee0; border-radius:8px; padding:0 12px; font:inherit; } button { height:46px; border:0; border-radius:8px; background:var(--blue); color:white; font:700 15px inherit; cursor:pointer; }.alert { padding:11px; border-radius:8px; background:#fee9e9; color:#a52222; }.login-card small { color:#6a8398; }
input, select, textarea, button { font-size:16px; }
.layout { display:grid; grid-template-columns:275px 1fr; min-height:100vh; } aside { display:flex; flex-direction:column; padding:32px 24px; color:white; background:var(--navy); }.brand { font-size:25px; font-weight:800; }.scope { color:#b8d8ee; margin:22px 0 28px; }nav { display:grid; gap:7px; } nav a { padding:13px 15px; color:white; border-radius:7px; text-decoration:none; } nav a.active,nav a:hover { background:#285b89; }.logout { width:100%; margin-top:auto; background:#d53b44; }.content { padding:48px; }.cards { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; margin:32px 0; }.cards article,.notice { padding:24px; border:1px solid var(--line); border-radius:12px; background:var(--paper); }.cards strong,.cards span { display:block; }.cards strong { color:#597c98; font-size:13px; }.cards span { margin-top:12px; font-size:16px; font-weight:700; word-break:break-word; }.notice { border-left:5px solid var(--blue); } .notice h2 { margin-top:0; }.warning { border-left-color:#d6901d; }.primary-link { display:inline-block; margin-top:6px; padding:11px 15px; border-radius:7px; color:white; background:var(--blue); font-weight:700; text-decoration:none; }
.wide-content { max-width:1450px; }.panel { margin-top:22px; padding:24px; border:1px solid var(--line); border-radius:12px; background:var(--paper); }.panel h2 { margin:0 0 20px; font-size:21px; }.form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px 20px; }.form-grid label { min-width:0; }.form-grid .full { grid-column:1 / -1; }.form-action { display:flex; align-items:end; }.form-action button { width:100%; } select,textarea { width:100%; border:1px solid #b8cee0; border-radius:8px; padding:10px 12px; color:var(--ink); background:white; font:inherit; } select { height:46px; } textarea { resize:vertical; }.success { padding:11px; border-radius:8px; background:#e7f7ee; color:#17633b; }.panel-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; }.panel-heading h2 { margin:0; }.table-wrap { overflow:auto; border:1px solid var(--line); border-radius:8px; } table { width:100%; border-collapse:collapse; min-width:720px; } th,td { padding:12px 14px; border-bottom:1px solid #e3ebf2; text-align:left; font-size:14px; } th { color:#426987; background:#f5f9fc; } tr:last-child td { border-bottom:0; }
.stacked-form { display:grid; gap:10px; min-width:260px; margin-top:12px; padding:12px; border:1px solid var(--line); border-radius:10px; background:#f7fbfe; }.stacked-form label { font-size:12px; }.stacked-form input,.stacked-form select { height:38px; }.stacked-form button { height:38px; } details summary { cursor:pointer; color:var(--blue); font-weight:800; }
.table-link { color:#176ca5; font-weight:700; text-decoration:none; }.table-link:hover { text-decoration:underline; }.labels-page { background:#f2f5f8; }.labels-toolbar { display:flex; align-items:center; justify-content:space-between; gap:20px; padding:18px 28px; color:white; background:#123b63; }.labels-toolbar strong,.labels-toolbar span { display:block; }.labels-toolbar span { margin-top:4px; color:#c5dfef; font-size:13px; }.labels-toolbar button { min-width:180px; background:#176ca5; }.labels-grid { display:grid; grid-template-columns:repeat(auto-fill,170px); gap:14px; padding:28px; }.label-card { display:flex; min-height:110px; flex-direction:column; align-items:center; justify-content:center; padding:9px; text-align:center; background:white; border:1px dashed #7c8e9f; }.label-card strong { width:100%; overflow:hidden; font-size:11px; text-overflow:ellipsis; white-space:nowrap; }.label-price { margin:3px 0; font-size:13px; font-weight:800; }.label-card img { width:150px; height:38px; }.label-card code { font-size:10px; }
.pdv-reader { display:flex; gap:14px; align-items:end; padding:18px; border:1px solid #9bc6e5; border-radius:12px; background:#fff; }.pdv-reader > form:first-child { display:grid; grid-template-columns:minmax(300px,1fr) 105px 140px; gap:12px; flex:1; }.pdv-reader input { width:100%; }.branch-select { width:210px; }.pdv-grid { display:grid; grid-template-columns:minmax(0,1fr) 330px; gap:20px; }.total-value { color:#176ca5; font-size:24px; }.checkout { margin-top:22px; }.small-danger { height:32px; padding:0 10px; background:#c9464b; font-size:12px; }.search-form { display:flex; gap:8px; }.search-form input { width:270px; }.search-form button { height:46px; padding:0 16px; }
.page-heading { display:flex; justify-content:space-between; align-items:end; gap:20px; }.page-heading .branch-select { margin:0; }.finance-cards { grid-template-columns:repeat(5,minmax(0,1fr)); margin:24px 0; }.cards article.attention { border-color:#e7bd78; background:#fffaf0; }.finance-grid { display:grid; grid-template-columns:minmax(0,1.6fr) minmax(260px,.8fr); gap:20px; }.finance-help ul { display:grid; gap:13px; margin:0; padding-left:20px; color:#587a98; line-height:1.45; }.status { display:inline-block; padding:4px 8px; border-radius:999px; font-size:12px; font-weight:700; }.status.open { color:#8a4a00; background:#fff0d2; }.status.paid { color:#17633b; background:#e7f7ee; }.small-action { height:33px; padding:0 10px; font-size:12px; }
@media (max-width:980px) { .finance-cards { grid-template-columns:repeat(3,minmax(0,1fr)); }.finance-grid { grid-template-columns:1fr; } }
@media (max-width:760px) { .layout { grid-template-columns:1fr; } aside { min-height:auto; } nav { grid-template-columns:repeat(2,1fr); }.logout { margin-top:22px; }.content { padding:28px 18px; }.cards,.form-grid,.pdv-grid,.finance-cards { grid-template-columns:1fr; }.panel-heading,.pdv-reader,.page-heading { align-items:start; flex-direction:column; }.pdv-reader > form:first-child { width:100%; grid-template-columns:1fr; }.branch-select { width:100%; }.search-form { width:100%; }.search-form input { width:100%; } }
@media (max-width:760px) {
  body { background:#f4f8fb; }
  h1 { font-size:26px; line-height:1.15; }
  .login-page { padding:14px; align-items:start; }
  .login-card { margin-top:18px; padding:26px 20px; border-radius:12px; }
  .layout { grid-template-columns:1fr; }
  aside { position:sticky; top:0; z-index:20; min-height:auto; padding:16px; box-shadow:0 8px 22px #0a223840; }
  .brand { font-size:21px; }
  .scope { margin:8px 0 12px; }
  nav { display:flex; gap:8px; overflow:auto; padding-bottom:2px; }
  nav a { flex:0 0 auto; padding:10px 12px; white-space:nowrap; font-size:14px; }
  .logout { height:38px; margin-top:12px; }
  .content { padding:22px 14px 80px; }
  .wide-content { max-width:100%; }
  .panel { margin-top:16px; padding:16px; border-radius:10px; }
  .cards { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin:18px 0; }
  .cards article { padding:16px; border-radius:10px; }
  .cards span { font-size:18px; }
  .form-grid,.pdv-grid,.finance-cards,.finance-grid { grid-template-columns:1fr; }
  .form-action { display:block; }
  .form-action button, .form-stack button, button { width:100%; min-height:48px; }
  .panel-heading,.pdv-reader,.page-heading { align-items:stretch; flex-direction:column; }
  .pdv-reader { padding:14px; gap:12px; }
  .pdv-reader > form:first-child { width:100%; grid-template-columns:1fr; }
  .branch-select { width:100%; }
  .search-form { width:100%; flex-direction:column; }
  .search-form input { width:100%; }
  .table-wrap { border:0; overflow:visible; }
  table { min-width:0; border-collapse:separate; border-spacing:0 10px; }
  thead { display:none; }
  tr { display:block; padding:12px; border:1px solid var(--line); border-radius:10px; background:#fff; }
  td { display:flex; justify-content:space-between; gap:14px; padding:8px 0; border:0; font-size:14px; }
  td::before { content:attr(data-label); min-width:92px; color:#597c98; font-weight:700; }
  td:empty::before { content:""; }
  .pdv-grid .panel:first-child { order:1; }
  .checkout { order:2; margin-top:16px; }
  .total-value { font-size:28px; }
  .stacked-form { min-width:0; }
  .labels-toolbar { align-items:stretch; flex-direction:column; padding:14px; }
  .labels-toolbar button { width:100%; }
  .labels-grid { grid-template-columns:repeat(auto-fill,minmax(145px,1fr)); padding:14px; }
}
@media print { .labels-toolbar { display:none; }.labels-page { background:white; }.labels-grid { gap:3mm; padding:0; grid-template-columns:repeat(3,55mm); }.label-card { min-height:32mm; border:0; break-inside:avoid; } }

.company-logo-preview{display:block;max-width:220px;max-height:110px;object-fit:contain;border:1px solid var(--line);border-radius:10px;padding:10px;background:white}

.network-card{display:flex;align-items:center;justify-content:space-between;gap:22px}.network-address{display:inline-block;margin:6px 0 12px;padding:10px 12px;border-radius:8px;background:#eef6fc;color:#123b63;font-weight:800;word-break:break-all}.network-qr{width:150px;height:150px;padding:8px;border:1px solid var(--line);border-radius:10px;background:white}.copy-button{width:auto;padding:0 16px}.client-actions{display:flex;gap:10px;flex-wrap:wrap}
@media (max-width:760px){.network-card{align-items:flex-start;flex-direction:column}.network-qr{width:132px;height:132px}.copy-button{width:100%}}

.password-field { position: relative; display: block; }
.password-field input { padding-right: 48px; width: 100%; }
.password-toggle { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border: 0; border-radius: 6px; background: transparent; color: #34566f; cursor: pointer; font-size: 16px; line-height: 1; }
.password-toggle:hover, .password-toggle:focus { background: #e9f2f8; outline: 2px solid transparent; }
.password-toggle.is-visible { color: #176ca5; }
