/* Administrator package templates and account permissions. */
.packages-page{max-width:1500px;margin:0 auto;padding:2px 0 40px;display:flex;flex-direction:column;gap:16px;min-width:0;color:#1d2433}
.packages-page [hidden]{display:none!important}
.packages-page .pkg-header{align-items:center;margin-bottom:0}
.pkg-title-group{display:flex;align-items:center;gap:15px;min-width:0}
.pkg-title-icon{display:grid;place-items:center;width:48px;height:48px;flex:0 0 48px;border-radius:15px;background:linear-gradient(135deg,#8b5cf6,#6741d9);box-shadow:0 10px 24px rgba(104,65,217,.22);color:#fff}
.pkg-title-icon svg{width:23px;height:23px;fill:none;stroke:#fff;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.pkg-eyebrow{display:block;margin-bottom:4px;color:#6b3fd0;font-size:11px;font-weight:800;line-height:1.3;letter-spacing:.09em;text-transform:uppercase}
.packages-page .pkg-header .wp-page-title{display:block;margin:0;font-size:28px;line-height:1.2;color:#171b28}
.packages-page .pkg-header .wp-page-subtitle{margin:5px 0 0;max-width:640px;color:#4f5668;font-size:14px;line-height:1.5}
.pkg-header-actions,.pkg-row-actions,.pkg-form-actions{display:flex;align-items:center;flex-wrap:wrap;gap:.5rem}
.pkg-header-actions{flex-shrink:0;justify-content:flex-end}
.pkg-header-actions button{min-height:38px;white-space:nowrap}
.pkg-tabs{display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin:0;padding:7px;border:1px solid #e6e8ef;border-radius:13px;background:#fff;box-shadow:0 6px 20px rgba(31,35,48,.035)}
.pkg-tabs button{border:1px solid transparent;border-radius:8px;background:transparent;color:#626a79;font:inherit;font-size:13px;font-weight:650;padding:9px 14px;min-height:40px;cursor:pointer}
.pkg-tabs button:hover{background:#faf8ff;color:#7043d8}
.pkg-tabs button[aria-pressed=true]{border-color:#dfd3fa;background:#f0eaff;color:#7043d8}
.pkg-tabs button:focus-visible{outline:2px solid #8352F1;outline-offset:2px}
.pkg-tabs button:disabled{opacity:.55;cursor:wait}
.pkg-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.pkg-summary:empty{display:none}
.pkg-stat{display:flex;align-items:center;gap:14px;min-width:0;padding:17px 18px;border:1px solid #e6e8ef;border-radius:14px;background:#fff;box-shadow:0 7px 22px rgba(31,35,48,.035)}
.pkg-stat-icon{display:grid;place-items:center;width:40px;height:40px;flex:0 0 40px;border-radius:12px;background:#F6F2FE;color:#8352F1}
.pkg-stat-icon svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.pkg-stat-icon--green{background:#eafaf3;color:#09a476}
.pkg-stat-icon--amber{background:#fff7e6;color:#e89700}
.pkg-stat>div{min-width:0}
.pkg-stat span:not(.pkg-stat-icon){display:block;color:#4f5767;font-size:11px;font-weight:700}
.pkg-stat strong{display:block;margin-top:4px;color:#272d3d;font-size:24px;line-height:1.2}
.pkg-notice{display:flex;gap:14px;padding:16px 18px;border:1px solid #eee6fd;border-radius:14px;background:#faf8ff;color:#4a425d;font-size:13px;line-height:1.6;box-shadow:0 6px 20px rgba(31,35,48,.03)}
.pkg-notice>i,.pkg-notice-icon{display:grid;place-items:center;width:36px;height:36px;flex:0 0 36px;margin-top:1px;border-radius:11px;background:#efe8ff;color:#5f34c8}
.pkg-notice strong{display:block;color:#2c2344;font-size:14px}
.pkg-notice p{margin:.35rem 0 0}
.pkg-inventory,.pkg-editor{overflow:hidden;border:1px solid #e6e8ef;border-radius:16px;background:#fff;box-shadow:0 8px 26px rgba(31,35,48,.045)}
.pkg-inventory-heading,.pkg-editor-header,.pkg-section-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:18px 22px;border-bottom:1px solid #eceef3;background:linear-gradient(135deg,#fcfbff,#fff)}
.pkg-inventory-heading h2,.pkg-editor-header h2,.pkg-section-heading h2{font-size:18px;line-height:1.3;margin:0 0 5px;font-weight:700;color:#171b28}
.pkg-inventory-heading p,.pkg-editor-header p,.pkg-section-heading p{margin:0;font-size:13px;line-height:1.55;color:#4f5668}
.pkg-count{display:inline-flex;align-items:center;margin-left:8px;padding:5px 9px;border-radius:999px;background:#eee8fc;color:#5f34c8;font-size:11px;font-weight:750;white-space:nowrap}
.pkg-search{box-sizing:border-box;height:40px;display:flex;align-items:center;gap:.65rem;width:280px;max-width:100%;border:1px solid #dde0e7;border-radius:9px;padding:0 .85rem;color:#94a3b8;background:#fff}
.pkg-search input{width:100%;min-width:0;border:0;background:transparent;outline:none;padding:0;font:inherit;font-size:14px;line-height:20px;color:#15324f}
.pkg-search:focus-within{border-color:#9b78ec;box-shadow:0 0 0 3px rgba(131,82,241,.1)}
.pkg-search input:focus{outline:none!important;box-shadow:none!important}
.pkg-table-wrap{max-width:100%;overflow-x:auto;overscroll-behavior-x:contain}
.pkg-table{width:100%;min-width:980px;border-collapse:collapse;font-size:14px}
.pkg-table th{padding:12px 16px;text-align:left;background:#fafafd;border-bottom:1px solid #eceef3;font-size:11px;text-transform:uppercase;letter-spacing:.04em;font-weight:700;color:#5b6475}
.pkg-table td{vertical-align:top;padding:16px;border-bottom:1px solid #eff0f4;max-width:340px;color:#2f3645}
.pkg-table tbody tr:last-child td{border-bottom:0}
.pkg-table tbody tr:hover{background:#fcfbff}
.pkg-table th:first-child{width:22%}
.pkg-table th:nth-child(2){width:22%}
.pkg-table th:nth-child(3){width:24%}
.pkg-table th:nth-child(4){width:10%}
.pkg-identity{display:flex;align-items:flex-start;gap:12px;min-width:0}
.pkg-identity-icon{display:grid;place-items:center;width:36px;height:36px;flex:0 0 36px;border-radius:10px;background:#eee8fc;color:#7448d8}
.pkg-identity-icon svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.pkg-name{display:block;font-size:15px;overflow-wrap:anywhere;margin-bottom:.2rem;color:#171b28}
.pkg-table code{display:inline-block;max-width:100%;overflow-wrap:anywhere;padding:2px 7px;border-radius:6px;background:#f4f1fb;color:#5f34c8;font-size:11px}
.pkg-description{line-height:1.55;font-size:12px;color:#5b6475;margin:.55rem 0 0;overflow-wrap:anywhere}
.pkg-limit-list{display:flex;flex-direction:column;gap:7px;margin:0;font-size:12px}
.pkg-limit-list>div{display:flex;justify-content:space-between;gap:10px;padding:7px 9px;border-radius:8px;background:#f7f6fb}
.pkg-limit-list dt{font-weight:600;color:#5b6475}
.pkg-limit-list dd{margin:0;text-align:right;font-weight:700;white-space:nowrap;color:#272d3d}
.pkg-feature-count{display:inline-flex;padding:.25rem .6rem;border:1px solid #d8c8fb;border-radius:20px;background:#f6f2fe;color:#6f3ddb;font-size:11px;font-weight:700;white-space:nowrap}
.pkg-feature-preview{margin:.55rem 0 0;font-size:12px;line-height:1.55;color:#5b6475;overflow-wrap:anywhere}
.pkg-feature-source{display:block;font-size:11px;color:#6b3fd0;margin-top:.4rem;font-weight:650;overflow-wrap:anywhere}
.pkg-account-count{display:block;font-size:22px;font-weight:750;color:#171b28;line-height:1.1}
.pkg-account-label{display:block;margin-top:4px;font-size:11px;color:#5b6475;font-weight:650}
.pkg-table th:last-child,.pkg-table td[data-label="Actions"]{width:1%;max-width:none}
.pkg-table .pkg-row-actions{flex-wrap:nowrap;gap:6px;width:max-content;min-width:0;max-width:none}
.pkg-table .pkg-row-actions button{flex:0 0 auto;width:auto;white-space:nowrap;font-size:12px;padding:.45rem .65rem;min-height:34px;justify-content:center}
.pkg-empty{display:flex;align-items:center;flex-direction:column;padding:2.6rem 1rem;text-align:center;gap:.6rem;color:#5b6475}
.pkg-empty>i{font-size:1.6rem;color:#b9a6ec}
.pkg-empty strong{color:#171b28}
.pkg-empty p{margin:0}
.pkg-editor{scroll-margin-top:1rem}
.pkg-form{display:flex;flex-direction:column;gap:0}
.pkg-form .pkg-section-heading{margin:0}
.pkg-form-body{display:grid;gap:18px;padding:22px 24px 24px}
.pkg-form-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.pkg-form label{display:flex;flex-direction:column;gap:.4rem;min-width:0;font-size:13px;font-weight:700;color:#2f3645}
.pkg-form label>small{color:#5b6475;font-weight:400;font-size:12px;line-height:1.5}
.pkg-form .form-control{width:100%;max-width:100%;min-height:42px;margin:0;border:1px solid #d8dbe3;border-radius:9px;padding:.65rem .8rem;font:inherit;font-weight:400;box-sizing:border-box;color:#1c2333;background-color:#fff}
.pkg-form .form-control:focus-visible,.pkg-form .form-control:focus{outline:0;border-color:#9b78ec;box-shadow:0 0 0 3px rgba(131,82,241,.12)}
.packages-page .pkg-form .form-control{border-color:#d8dbe3}
.packages-page .pkg-form .form-control:user-invalid{border-color:#b91c1c}
.pkg-form .form-control[readonly]{background-color:#f7f9fc;color:#64748b}
.pkg-form textarea.form-control{resize:vertical;min-height:78px}
.pkg-wide-field{grid-column:1/-1}
.pkg-fieldset{border:1px solid #eee8fb;border-radius:12px;padding:16px 18px 18px;margin:0;min-width:0;background:#faf8ff}
.pkg-fieldset legend{font-size:14px;font-weight:700;padding:0 .4rem;color:#171b28}
.pkg-fieldset-note{margin:0 0 1rem;color:#5b6475;font-size:13px}
.pkg-limits-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.pkg-unit{margin-left:6px;color:#5b6475;font-size:11px;font-weight:500}
.pkg-limit-control{display:flex;flex-direction:column;gap:.4rem;min-width:0}
.pkg-limit-control>small{color:#5b6475;font-size:12px;line-height:1.5}
.pkg-form .pkg-unlimited{display:flex;flex-direction:row;align-items:center;gap:.45rem;font-size:12px;font-weight:500}
.pkg-unlimited input{width:16px;height:16px;margin:0;accent-color:#8352F1}
.pkg-feature-list-label{max-width:640px}
.pkg-form .form-control:disabled{background-color:#f7f9fc;color:#64748b;opacity:.8}
.pkg-feature-option:has(input:disabled){cursor:default}
.pkg-feature-option input:disabled{cursor:default;opacity:.7}
.pkg-feature-toolbar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:.75rem;margin-bottom:1rem}
.pkg-feature-toolbar p{margin:0;font-size:13px;color:#5b6475}
.pkg-feature-toolbar>div{display:flex;gap:.4rem;flex-wrap:wrap}
.pkg-feature-toolbar button{font-size:12px;padding:.4rem .7rem;min-height:34px}
.pkg-features-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.pkg-form .pkg-feature-option{display:flex;flex-direction:row;align-items:flex-start;gap:.7rem;border:1px solid #e6e8ef;border-radius:10px;padding:12px 13px;font-weight:400;cursor:pointer;background:#fff;line-height:1.4}
.pkg-feature-option:hover{border-color:#bca2f8;background:#fcfbff}
.pkg-feature-option:has(input:checked){border-color:#9b78ec;background:#fcfbff;box-shadow:0 0 0 3px rgba(131,82,241,.08)}
.pkg-feature-option input{width:17px;height:17px;flex-shrink:0;margin:.1rem 0 0;accent-color:#8352F1;cursor:pointer}
.pkg-feature-option strong{display:block;font-size:13px;color:#171b28}
.pkg-feature-option small{display:block;margin-top:.2rem;color:#5b6475;font-size:12px;line-height:1.5}
.pkg-form-actions{justify-content:flex-end;padding:16px 24px 22px;border-top:1px solid #eceef3;background:#fafafd}
.pkg-message{padding:12px 14px;border:1px solid #cbd5e1;background:#f8fafc;border-radius:10px;line-height:1.65;font-size:13px;overflow-wrap:anywhere}
.pkg-message p{margin:0}
.pkg-message ul{margin:.4rem 0 0;padding-left:1.25rem}
.pkg-message--error{color:#991b1b;background:#fef2f2;border-color:#fecaca}
.pkg-message--success{color:#166534;background:#f0fdf4;border-color:#bbf7d0}
.pkg-assignment-details{border:1px solid #eee8fb;border-radius:12px;background:#faf8ff;padding:16px 18px;font-size:13px;line-height:1.6}
.pkg-assignment-details p{margin:.35rem 0 0}
.pkg-assignment-details h3{margin:16px 0 8px;font-size:14px;color:#171b28}
.pkg-assignment-comparison{max-width:100%;overflow:auto;margin:.85rem 0;border:1px solid #eee8fb;border-radius:10px;background:#fff}
.pkg-assignment-comparison table{width:100%;min-width:480px;border-collapse:collapse;font-size:12px}
.pkg-assignment-comparison th,.pkg-assignment-comparison td{text-align:left;padding:.65rem .8rem;border-bottom:1px solid #eef0f4}
.pkg-assignment-comparison thead th{background:#f6f2fe;color:#536c88;font-weight:700}
.pkg-assignment-comparison tbody th{font-weight:600;color:#536c88}
.pkg-assignment-comparison tbody tr:last-child>*{border-bottom:0}
.pkg-assignment-note{margin:0;font-size:13px;color:#5b6475;line-height:1.65}
.pkg-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:1150px){
    .pkg-header{align-items:flex-start}
    .pkg-limits-grid,.pkg-features-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:900px){
    .pkg-summary{grid-template-columns:1fr}
    .pkg-header-actions{width:100%}
    .pkg-header-actions button{flex:1 1 auto}
}
@media(max-width:720px){
    .packages-page{gap:12px;padding-bottom:24px}
    .pkg-title-icon{display:none}
    .packages-page .pkg-header .wp-page-title{font-size:24px}
    .pkg-tabs button{flex:1 1 auto}
    .pkg-inventory-heading,.pkg-editor-header,.pkg-section-heading,.pkg-form-body,.pkg-form-actions{padding-left:16px;padding-right:16px}
    .pkg-inventory-heading{flex-direction:column;align-items:stretch}
    .pkg-search{width:100%}
    .pkg-form-fields,.pkg-limits-grid,.pkg-features-grid{grid-template-columns:minmax(0,1fr)}
    .pkg-table{display:block;min-width:0}
    .pkg-table thead{display:none}
    .pkg-table tbody{display:block}
    .pkg-table tr{display:block;padding:16px;border-bottom:1px solid #eff0f4}
    .pkg-table td{display:block;max-width:none;padding:8px 0;border:0}
    .pkg-table td[data-label]::before{content:attr(data-label);display:block;margin-bottom:6px;color:#5b6475;font-size:10px;font-weight:700;letter-spacing:.04em;text-transform:uppercase}
    .pkg-table td[data-label="Package"]::before,.pkg-table td[data-label="Feature list"]::before{display:none}
    .pkg-table td[data-label="Actions"]{width:auto;max-width:100%;overflow-x:auto;padding-bottom:12px}
    .pkg-form-actions button{flex:1 1 auto}
}
