:root{--crm-bg:#f7f8f3;--crm-header:#f5f2e8;--crm-surface:#fff;--crm-text:#2c3b32;--crm-muted:#7d8d7d;--crm-line:#e3e9de;--crm-green:#476f53;--crm-green-dark:#365640;--crm-radius:13px}
body.crm-theme{display:block;min-height:100vh;margin:0;background:var(--crm-bg);color:var(--crm-text);font:14px/1.5 "Segoe UI",Arial,sans-serif}
.crm-theme *{box-sizing:border-box}
.crm-theme a{color:var(--crm-green)}
.crm-theme button,.crm-theme input,.crm-theme select,.crm-theme textarea{font-family:inherit}
.crm-theme :focus-visible{outline:3px solid #8aaa82;outline-offset:3px}
.crm-theme .crm-header{background:var(--crm-header);border-top:2px solid #e4e7ee}
.crm-theme .crm-brand-row{max-width:1880px;margin:auto;display:flex;align-items:center;justify-content:space-between;gap:24px;padding:17px 30px 14px}
.crm-theme .crm-brand{display:flex;align-items:center;gap:12px;text-decoration:none;color:var(--crm-text);flex-shrink:0}
.crm-theme .crm-brand-mark{display:grid;place-items:center;width:42px;height:42px;border-radius:12px;background:var(--crm-green);color:white;font-size:10px;font-weight:800;letter-spacing:-.3px}
.crm-theme .crm-brand strong{display:block;font-size:18px;line-height:1.25;letter-spacing:-.5px;font-weight:800}
.crm-theme .crm-brand small{display:block;font-size:9px;letter-spacing:1.8px;color:#8c9d87;font-weight:750;margin-top:3px}
.crm-theme .crm-header-tools{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.crm-theme .crm-search{display:flex;gap:6px;margin:0}
.crm-theme .crm-search input{width:220px;min-width:0}
.crm-theme .crm-environment{display:flex;align-items:center;gap:7px;font-size:12px;color:var(--crm-muted);white-space:nowrap}
.crm-theme .crm-environment i{width:6px;height:6px;border-radius:50%;background:#5a9968}
.crm-theme .crm-account{display:block;padding:9px 13px;background:#fff;border:1px solid var(--crm-line);border-radius:9px;text-decoration:none;font-size:12px;font-weight:700}
.crm-theme .book-admin-nav,.crm-theme .nav{max-width:none;gap:7px;padding:0 30px 14px;background:var(--crm-header);border-bottom:1px solid var(--crm-line);font-size:12px;display:flex;flex-wrap:wrap;position:static}
.crm-theme .book-admin-nav a,.crm-theme .nav a{padding:8px 11px;background:white;border:1px solid var(--crm-line);border-radius:8px;color:#7c8b77;font-size:12px;font-weight:650;line-height:1.4;text-decoration:none;white-space:normal}
.crm-theme .book-admin-nav a:hover,.crm-theme .nav a:hover{background:#edf3e8;border-color:#cddbc8;color:var(--crm-green)}
.crm-theme .book-admin-nav a[aria-current=page],.crm-theme .nav a.active{background:#eaf1e5;border-color:#d4e0cc;color:var(--crm-green);font-weight:750}
.crm-theme .book-admin-nav a[href="/books/add_order.php"]{background:var(--crm-green);color:#fff;border-color:var(--crm-green)}
.crm-theme .book-admin-nav a[href="/logout.php"]{margin-left:auto}
.crm-theme .topbar{display:none}
.crm-theme.crm-admin-view .nav{display:none}
.crm-theme .container,.crm-theme .wrap,.crm-theme>main,.crm-theme main.bp{width:100%;max-width:1480px;margin:0 auto;padding:36px 30px 48px}
.crm-theme .container>h2,.crm-theme .wrap>h2,.crm-theme main>h1{margin:8px 0 26px;font-size:30px;font-weight:750;letter-spacing:-.8px;color:var(--crm-text);line-height:1.25}
.crm-theme h2,.crm-theme h3{color:var(--crm-text)}
.crm-theme .crm-page-heading{margin:3px 0 26px}
.crm-theme .crm-page-heading .crm-eyebrow,.crm-theme .crm-section-heading small{font-size:10px;letter-spacing:1.6px;text-transform:uppercase;font-weight:800;color:#849776;margin:0 0 8px}
.crm-theme .crm-page-heading h1{font-size:32px;line-height:1.2;letter-spacing:-.9px;margin:0 0 8px}
.crm-theme .crm-page-heading>p:last-child{color:var(--crm-muted);font-size:14px;margin:0}
.crm-theme .filters{background:#fff;border:1px solid var(--crm-line);border-radius:var(--crm-radius);box-shadow:0 2px 5px #34473704;padding:20px;gap:14px;align-items:end;display:flex;flex-wrap:wrap;margin-bottom:14px}
.crm-theme .filters label,.crm-theme .field label,.crm-theme .form-group label{color:#63735f;font-size:12px;font-weight:650}
.crm-theme input:not([type=checkbox]):not([type=radio]):not([type=hidden]),.crm-theme select,.crm-theme textarea{max-width:100%;background:#fff;color:#34433a;border:1px solid #dce5d7;border-radius:8px;padding:10px 12px;box-shadow:none;font-size:13px;line-height:1.4}
.crm-theme input[type=checkbox],.crm-theme input[type=radio]{accent-color:var(--crm-green)}
.crm-theme button,.crm-theme .btn,.crm-theme .btn-primary,.crm-theme .btn-submit,.crm-theme .filters button,.crm-theme .pay-btn-open,.crm-theme .pay-btn-confirm{background:var(--crm-green);color:#fff;border:1px solid var(--crm-green);border-radius:8px;padding:9px 14px;font-size:13px;font-weight:650;cursor:pointer;box-shadow:none}
.crm-theme button:hover,.crm-theme .btn:hover,.crm-theme .btn-primary:hover{background:var(--crm-green-dark);border-color:var(--crm-green-dark);color:#fff}
.crm-theme button:disabled,.crm-theme input:disabled,.crm-theme select:disabled{opacity:.55;cursor:not-allowed}
.crm-theme .btn-sm,.crm-theme .btn-secondary,.crm-theme .btn-reset,.crm-theme .btn-edit{background:#f5f8f1!important;color:var(--crm-green)!important;border:1px solid #dbe6d4!important;border-radius:7px}
.crm-theme .btn-del,.crm-theme .btn-danger,.crm-theme .btn-minus{background:#fff3f2!important;color:#b74f50!important;border-color:#f2d4d1!important}
.crm-theme .shortcuts,.crm-theme .type-filter{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0 22px}
.crm-theme .shortcuts a,.crm-theme .type-filter a,.crm-theme .month-nav a{padding:8px 13px;border:1px solid #d8e1dc;background:#fff;border-radius:8px;color:#60746b;font-size:12px;font-weight:650;box-shadow:none;text-decoration:none}
.crm-theme .shortcuts a:hover,.crm-theme .type-filter a:hover,.crm-theme .type-filter a.active{color:white;background:var(--crm-green);border-color:var(--crm-green)}
.crm-theme .crm-kpis{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin:22px 0 16px}
.crm-theme .crm-kpi{display:flex;flex-direction:column;align-items:flex-start;gap:8px;min-height:140px;padding:19px 18px;border:1px solid #d5e5f2;border-radius:13px;background:#edf5fc;text-decoration:none;box-shadow:0 2px 4px #31473703;color:var(--crm-text)}
.crm-theme .crm-kpi:nth-child(2){background:#edf7ee;border-color:#d6ead9}
.crm-theme .crm-kpi:nth-child(3){background:#fff6df;border-color:#f2e2b3}
.crm-theme .crm-kpi:nth-child(4){background:#f3effb;border-color:#e5dbf5}
.crm-theme .crm-kpi:nth-child(5){background:#fff1e7;border-color:#f2dfd2}
.crm-theme .crm-kpi>span{font-size:12px;color:#7d8b80}
.crm-theme .crm-kpi>strong{font-size:27px;line-height:1.2;letter-spacing:-.5px;font-weight:750}
.crm-theme .crm-kpi>small{font-size:11px;line-height:1.55;color:#76877a}
.crm-theme .crm-kpi:hover{filter:brightness(.99);border-color:#b5cbb2}
.crm-theme .crm-section-heading{padding:22px 22px 0;background:white;border:1px solid var(--crm-line);border-bottom:0;border-radius:13px 13px 0 0;margin-top:16px}
.crm-theme .crm-section-heading h2{font-size:18px;margin:0 0 12px;padding-bottom:14px;border-bottom:1px solid var(--crm-line)}
.crm-theme .table-wrap,.crm-theme .scroll,.crm-theme .bp-table{max-width:100%;overflow-x:auto;border:1px solid var(--crm-line);border-radius:13px;background:white;padding:8px 18px 16px;box-shadow:none}
.crm-theme .crm-section-heading+.table-wrap{border-top:0;border-radius:0 0 13px 13px}
.crm-theme table{width:100%;border-collapse:collapse;background:white;border-radius:0;box-shadow:none;color:#38483e;font-size:12px}
.crm-theme th{background:#f7f8f2;color:#85947b;border-bottom:1px solid #dde6d7;padding:14px 12px;font-size:11px;font-weight:700;text-transform:none;letter-spacing:.2px;white-space:normal}
.crm-theme td{padding:16px 12px;border-bottom:1px solid #e4e9e0;vertical-align:middle}
.crm-theme tr:last-child td{border-bottom:0}
.crm-theme tr:hover td{background:#fafcf7}
.crm-theme tfoot td,.crm-theme .total-row td{background:#f3f7ee;font-weight:700}
.crm-theme .card,.crm-theme .artist-card,.crm-theme .payment-card,.crm-theme .form-card,.crm-theme .empty,.crm-theme .quick-btn,.crm-theme .dashboard-penalties{background:white;border:1px solid var(--crm-line);border-radius:13px;box-shadow:0 2px 5px #34473704}
.crm-theme .card{padding:22px}
.crm-theme .artist-header,.crm-theme .payment-header{border-bottom-color:var(--crm-line)}
.crm-theme .grand-total,.crm-theme .payout-card,.crm-theme .total-box{background:#eaf3e6;color:var(--crm-text);border:1px solid #d4e3cb;border-radius:13px;box-shadow:none}
.crm-theme .grand-total .label,.crm-theme .payout-card .label{color:#7b8c71}
.crm-theme .grand-total .amount,.crm-theme .payout-card .amount,.crm-theme .total-box .amount{color:var(--crm-green)}
.crm-theme .stats-grid .stat-card,.crm-theme .top-card{border:1px solid #dce8d5;border-radius:13px;background:#edf5e9;box-shadow:none}
.crm-theme .stat-num,.crm-theme .top-card .value,.crm-theme .sum,.crm-theme .money,.crm-theme .money-paid,.crm-theme .amount-text{color:var(--crm-green)!important}
.crm-theme .badge,.crm-theme .pages-badge,.crm-theme .pill-total,.crm-theme .badge-layout{background:#edf4e7;color:#5b7954;border-color:#dce8d2;border-radius:6px}
.crm-theme .badge-red,.crm-theme .status-cancel{background:#fcefee;color:#b96158}
.crm-theme .badge-text,.crm-theme .badge-type-text{background:#f2edf9;color:#85729c}
.crm-theme .badge-wait,.crm-theme .badge-spec{background:#fff5dc;color:#a38945}
.crm-theme .muted,.crm-theme .orders-count,.crm-theme .count{color:var(--crm-muted)}
.crm-theme .book-admin-context{max-width:1420px;margin:22px auto;background:#f1f5eb;border-color:#dbe5d2}
.crm-theme .bk-header{background:transparent;color:var(--crm-text);max-width:1480px;margin:auto;padding:22px 30px 0}
.crm-theme .bk-header a{color:var(--crm-green)}
.crm-theme .pages-opt input:checked+label{border-color:var(--crm-green);background:#edf4e8;color:var(--crm-green)}
.crm-theme .alert-success,.crm-theme .msg-ok{background:#edf6e9;border-color:#dcebd3;color:#527c49}
.crm-theme .alert-error,.crm-theme .msg-err,.crm-theme .error{background:#fff0ee;color:#ab5150;border-color:#f0d3ce}
.crm-theme.crm-login .crm-brand-row{justify-content:center;padding:28px}
.crm-theme.crm-login>.card{max-width:400px;margin:70px auto 30px;padding:32px}
.crm-theme.crm-login .logo{font-size:23px;color:var(--crm-text);margin-bottom:6px}
.crm-theme.crm-login .crm-login-note{text-align:center;color:var(--crm-muted);font-size:13px;margin:0 0 28px}
.crm-theme.crm-login .form-group{margin-bottom:17px}
.crm-theme.crm-login input,.crm-theme.crm-login .btn{width:100%}
@media(max-width:1100px){.crm-theme .crm-brand-row{padding:16px 20px}.crm-theme .book-admin-nav,.crm-theme .nav{padding:0 20px 14px}.crm-theme .crm-header-tools{gap:8px}.crm-theme .crm-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}.crm-theme .crm-environment{display:none}}
@media(max-width:768px){.crm-theme .crm-brand-row{align-items:flex-start;flex-wrap:wrap;gap:16px;padding:16px}.crm-theme .crm-header-tools{width:100%;justify-content:space-between}.crm-theme .crm-search{flex:1;min-width:180px}.crm-theme .crm-search input{width:100%;flex:1}.crm-theme .book-admin-nav,.crm-theme .nav{padding:0 12px 12px;gap:6px}.crm-theme .book-admin-nav a{font-size:11px;padding:8px}.crm-theme .book-admin-nav a[href="/logout.php"]{margin-left:0}.crm-theme .container,.crm-theme .wrap,.crm-theme>main,.crm-theme main.bp{padding:24px 16px 36px}.crm-theme .crm-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.crm-theme .crm-kpi{min-height:135px;padding:16px}.crm-theme .crm-kpi>strong{font-size:25px}.crm-theme .crm-page-heading h1,.crm-theme .container>h2{font-size:27px}.crm-theme .filters{padding:16px}.crm-theme .filters>div{max-width:100%}.crm-theme .book-admin-context{margin:16px}.crm-theme .table-wrap{padding:4px 10px 12px}.crm-theme .crm-section-heading{padding:18px 16px 0}.crm-theme.crm-login>.card{margin:34px 16px;max-width:none}}
@media(max-width:390px){.crm-theme .crm-header-tools{align-items:stretch}.crm-theme .crm-search{flex-basis:100%}.crm-theme .crm-account{margin-left:auto}.crm-theme .crm-kpis{gap:8px}.crm-theme .crm-kpi{padding:13px}.crm-theme .crm-kpi>strong{font-size:22px}}

.crm-theme .bk-topbar{display:none}
.crm-theme .app{max-width:1480px;margin:0 auto;padding:30px;--color-accent:var(--crm-green)}
.crm-theme .app>.topbar{display:flex;background:transparent;color:var(--crm-text);padding:0 0 22px}
.crm-theme .admin-wrap,.crm-theme .cards-page{max-width:1480px}
.crm-theme .panel,.crm-theme .cards-section,.crm-theme main>section{border:1px solid var(--crm-line);border-radius:13px;background:#fff;box-shadow:none}
.crm-theme .eyebrow,.crm-theme .cards-eyebrow{color:#849776}
.crm-theme .brand-title{color:var(--crm-text)}
@media(max-width:768px){.crm-theme .app{padding:20px 16px}}
