.sas-actions-menu { position:relative; display:inline-block; }
.sas-actions-menu summary { list-style:none; cursor:pointer; padding:9px 16px; border-radius:9px; background:#ffc107; color:#111827; font-weight:800; white-space:nowrap; }
.sas-actions-menu summary::-webkit-details-marker { display:none; }
.sas-actions-options { position:fixed; inset:auto; margin:0; box-sizing:border-box; z-index:2500; width:260px; max-width:calc(100vw - 16px); max-height:70vh; overflow:auto; padding:8px; background:#1e293b; border:1px solid #475569; border-radius:12px; box-shadow:0 16px 40px #0008; }
.sas-actions-options button { display:block; width:100%; border:0; border-radius:6px; padding:11px 12px; background:transparent; color:#e2e8f0; text-align:left; cursor:pointer; font:inherit; }
.sas-actions-options button:hover, .sas-actions-options button:focus-visible { background:#334155; color:#00d2ff; }
.sas-actions-options .danger { color:#fb7185; border-top:1px solid #475569; }
.company-dialog { color:#e2e8f0; background:#101827; border:1px solid #334155; border-radius:18px; width:min(740px,94vw); max-height:88vh; padding:26px; box-sizing:border-box; margin:auto; inset:0; }
.company-dialog::backdrop { background:#020617bb; backdrop-filter:blur(4px); }
.company-dialog h2 { color:#00d2ff; margin:0 0 20px; font-size:1.5rem; }
.company-dialog label { display:block; margin:12px 0; }
.company-dialog input, .company-dialog select { display:block; box-sizing:border-box; width:100%; padding:12px; margin-top:6px; border-radius:8px; border:1px solid #475569; color:#f8fafc; background:#0b1220; }
.company-dialog .fields { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.company-dialog .dialog-footer { display:flex; justify-content:flex-end; gap:10px; margin-top:20px; }
.company-dialog small { color:#94a3b8; }
.user-details-name{font-weight:700;margin-bottom:20px;overflow-wrap:anywhere}.user-details-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.user-details-grid section{min-width:0;padding:16px;border:1px solid #334155;border-radius:10px}.user-details-grid h3{font-size:.85rem;color:#94a3b8;margin:0 0 10px}.user-details-grid p{overflow-wrap:anywhere}.user-details-note{color:#94a3b8;font-size:.85rem;margin-top:8px}.user-details-modules{display:flex;flex-wrap:wrap;gap:6px}@media(max-width:600px){.user-details-grid{grid-template-columns:1fr}}
.archive-records details{border:1px solid #334155;border-radius:8px;padding:12px;margin:10px 0}.archive-records summary{cursor:pointer;overflow-wrap:anywhere}.archive-records dl{display:grid;grid-template-columns:minmax(90px,1fr) 2fr;gap:8px;margin-top:12px;font-size:.85rem}.archive-records dt{color:#94a3b8}.archive-records dd{margin:0;white-space:pre-wrap;overflow-wrap:anywhere;max-height:150px;overflow:auto}
.company-dialog .api-feedback { margin:14px 0; white-space:pre-wrap; }
.company-dialog .api-secret { padding:16px; border:1px solid #0e7490; border-radius:10px; margin-top:16px; }
.branch-registration { color:#94a3b8; font-size:.8rem; margin:0 0 12px; overflow-wrap:anywhere; }
.business-settings-dialog { width:min(1180px,96vw); }
.business-settings-dialog .business-editor { margin-top:0; padding:12px; border:0; }
.filial-card .sas-actions-menu { width:100%; }
.filial-card .sas-actions-menu summary { text-align:center; }
@media(max-width:600px) { .company-dialog .fields { grid-template-columns:1fr; gap:0; } }
.monthly-history-section { margin: 12px 0 20px; }
.monthly-history-section p { color: #94a3b8; font-size: .82rem; margin: 8px 0; }
.monthly-history-scroll { overflow-x: auto; margin: 10px 0; }
.monthly-history { width: 100%; border-collapse: separate; border-spacing: 3px; font-size: .8rem; }
.monthly-history th { padding: 7px; text-align: left; color: #cbd5e1; }
.monthly-history td { padding: 8px; border-radius: 5px; text-align: center; white-space: nowrap; }
.monthly-history small { display: block; font-size: .65rem; margin-top: 3px; }
.monthly-history .paid { background: #14532d; color: #bbf7d0; }
.monthly-history .debt { background: #7f1d1d; color: #fecaca; }
.monthly-history .no_charge { background: #1e3a8a; color: #bfdbfe; }
.filial-card .monthly-history { font-size: .7rem; }
.filial-card .monthly-history td { padding: 5px 3px; }
