.license-badge{display:inline-block;padding:4px 13px;border-radius:20px;font-size:13px;font-weight:600;white-space:nowrap}
.sidebar{background:#172b40}.sidebar nav button.active{background:#164c73;border-left-color:#64baff}.sidebar nav button{color:#b1c4d9}.sidebar-foot{color:#a9bbcf}
#license-shop-rows th{background:#edf2f7;color:#344255}#license-shop-rows td{padding-top:9px;padding-bottom:9px}#license-shop-rows .actions{display:table-cell;white-space:nowrap}#license-shop-rows .text-button{display:inline-block;border:1px solid #d4deea;border-radius:4px;padding:4px 8px;margin:0 3px;color:#34506c;background:white;font-size:13px}#license-shop-rows a.text-button{color:#1264e9;background:#f1f7ff;border-color:#b6d3ff}#license-shop-rows .text-button[data-action=manage-license]{color:#008449}
dialog:has(.license-edit-grid){width:min(760px,calc(100vw - 30px));max-height:90vh}dialog:has(.license-edit-grid) #modal-body{padding:20px 22px;max-height:calc(90vh - 140px);overflow:auto}
.license-badge.ACTIVE{background:#c5f1d5;color:#008449}.license-badge.EXPIRING{background:#ffebcb;color:#ed7900}.license-badge.GRACE{background:#ffe1d5;color:#d64b14}.license-badge.EXPIRED{background:#ffe0e1;color:#e52c32}.license-badge.SUSPENDED{background:#e7ebf0;color:#536274}.license-badge.PERMANENT{background:#d7e6ff;color:#1264e9}
.license-filters{display:flex;gap:12px;padding:18px}.license-filters input{min-width:220px;flex:1}.license-filters select{width:150px}.license-filters input,.license-filters select{padding:9px;border:1px solid #d4deea;border-radius:5px;background:white}
.license-days.ACTIVE{color:#008449}.license-days.EXPIRING{color:#ef7800}.license-days.GRACE,.license-days.EXPIRED{color:#ed3035}.license-pagination{padding:14px;color:#66768a;display:flex;gap:12px;align-items:center;justify-content:flex-end}.license-pagination button{border:1px solid #d4deea;background:white;border-radius:4px;padding:4px 12px}
.license-overview{display:grid;grid-template-columns:repeat(6,1fr);gap:12px;padding:18px}.license-summary{padding:16px 10px;border-radius:7px;border:1px solid #d9e2ec;text-align:left;background:#f4f6f9;color:#536274}.license-summary strong{display:block;font-size:28px;margin-bottom:6px}.license-summary.ACTIVE{background:#e7f7f1;color:#008449}.license-summary.EXPIRING{background:#fff3e6;color:#ed7900}.license-summary.GRACE{background:#fff0e8;color:#d64b14}.license-summary.EXPIRED{background:#fff0f1;color:#e52c32}.license-summary.PERMANENT{background:#eaf2ff;color:#1264e9}
.license-shop-card{display:flex;justify-content:space-between;align-items:center;background:#f3f7fb;border:1px solid #e0e8f0;border-radius:6px;padding:16px;margin-bottom:16px;gap:16px}.license-shop-card>div:last-child{text-align:right}.license-shop-card strong{font-size:19px}.license-edit-grid{display:grid;grid-template-columns:1fr 1fr;gap:28px}.license-edit-grid section+section{border-left:1px solid #e1e8f0;padding-left:24px}.license-edit-grid .field{margin-bottom:12px}.license-renew{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}.license-renew button{color:#008449;border:1px solid #9cd9be;border-radius:4px;background:white;padding:9px 5px}.license-toggle{width:100%;color:#e52c32;border:1px solid #f18a90;background:white;border-radius:4px;padding:10px}.license-log{margin-top:18px}.license-log summary{cursor:pointer;font-weight:600;margin-bottom:12px}
@media(min-width:701px){.license-edit-grid section:first-child .field:has(span){display:grid;grid-template-columns:88px 1fr;align-items:center;gap:10px}.license-edit-grid section:first-child .field span{font-size:14px;margin:0}.license-edit-grid .field input:not([type=checkbox]),.license-edit-grid .field select{padding:7px 10px;border-radius:4px}.license-edit-grid h3{margin:0 0 14px}.license-shop-card{margin-bottom:22px}}
@media(max-width:700px){.license-overview{grid-template-columns:repeat(2,1fr)}.license-edit-grid{grid-template-columns:1fr;gap:12px}.license-edit-grid section+section{border-left:0;padding-left:0}.license-filters{flex-wrap:wrap}.license-filters input{min-width:0;width:100%;flex-basis:100%}.license-filters select{width:calc(50% - 6px)}.license-renew{grid-template-columns:repeat(3,1fr)}}
@media print{
  @page{size:A4 landscape;margin:10mm}
  #toast{display:none!important}body:has(#license-shop-rows){background:white;min-height:0}body:has(#license-shop-rows) .shell,body:has(#license-shop-rows) .main-column{min-height:0;height:auto}#license-shop-rows th:nth-child(6){width:200px}#license-shop-rows td:nth-child(6){white-space:nowrap}
  body:has(#license-shop-rows) .sidebar,body:has(#license-shop-rows) .topbar,body:has(#license-shop-rows) .page-intro,body:has(#license-shop-rows) .notice,.license-filters,.license-pagination{display:none!important}
  body:has(#license-shop-rows) .shell{display:block}body:has(#license-shop-rows) .main-column{width:100%;min-width:0}body:has(#license-shop-rows) main{padding:0}body:has(#license-shop-rows) .panel{box-shadow:none;border:0}body:has(#license-shop-rows) .panel:not(:has(#license-shop-rows)){display:none}
  #license-shop-rows .table-wrap{overflow:visible}#license-shop-rows table{width:100%;table-layout:fixed;font-size:12px}#license-shop-rows td,#license-shop-rows th{white-space:normal;overflow-wrap:anywhere;padding:7px 5px}#license-shop-rows td:nth-child(11),#license-shop-rows th:nth-child(11){display:none}#license-shop-rows th:first-child{width:25px}#license-shop-rows th:nth-child(3){width:130px}#license-shop-rows th:nth-child(6){width:160px}#license-shop-rows th:nth-child(10){width:120px}#license-shop-rows tr{break-inside:avoid}
  .license-summary{break-inside:avoid}.license-shop-card,.license-badge{print-color-adjust:exact}.license-badge{font-size:12px;padding:3px 6px}
  #license-shop-rows th:nth-child(6){width:220px}body:has(#license-shop-rows) .main-column,body:has(#license-shop-rows) main{background:white}
}
