/* Enterprise component UX overrides: compact headers, data-grid command bars and dialogs. */
.cupps-page-head{min-height:104px!important;margin-bottom:14px!important;padding:16px 20px!important;border-radius:16px!important;gap:18px!important;background:linear-gradient(112deg,#0b1f38 0%,#123b67 60%,#1d5fba 100%)!important;box-shadow:0 9px 24px rgba(12,35,67,.14)!important;border:1px solid rgba(255,255,255,.08)!important}
.cupps-page-head:before{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(90deg,transparent,rgba(255,255,255,.035));border-radius:inherit}.cupps-page-head{position:relative;overflow:hidden}
.cupps-page-head h1{margin:2px 0 3px!important;font-size:21px!important;line-height:1.25!important;font-weight:850!important;letter-spacing:-.015em}.cupps-page-head p{max-width:820px!important;margin:0!important;font-size:10px!important;line-height:1.8!important;color:#d6e3f3!important}.cupps-page-head .eyebrow{font-size:8px!important;letter-spacing:.13em!important;color:#8fbaf3!important}.cupps-page-head button{min-height:38px!important;height:38px!important;padding:0 13px!important;border-color:rgba(255,255,255,.22)!important;background:rgba(255,255,255,.08)!important;color:#fff!important;box-shadow:none!important}
.maintenance-hero{min-height:104px!important;padding:16px 20px!important;gap:18px!important;border-radius:16px!important;background:linear-gradient(135deg,#fff 0%,#f7fafc 55%,#eef5f3 100%)!important;box-shadow:0 8px 24px rgba(27,48,61,.07)!important;border-color:#dce6e3!important}.maintenance-hero:before,.maintenance-hero:after{opacity:.45!important;transform:scale(.72);transform-origin:center}.maintenance-hero h2{font-size:20px!important;margin:2px 0 3px!important}.maintenance-hero p{font-size:10px!important;line-height:1.75!important;max-width:820px!important}.maintenance-hero .eyebrow{font-size:8px!important;letter-spacing:.1em!important}.maintenance-hero .hero-actions,.maintenance-hero .maintenance-hero-actions{gap:7px!important}.maintenance-hero button,.maintenance-hero .button{min-height:38px!important;height:38px!important;padding:0 13px!important}
.cupps-data-panel{border:1px solid #e1e7f0;border-radius:15px;background:#fff;box-shadow:0 7px 22px rgba(24,39,75,.045);overflow:hidden}.cupps-commandbar{min-height:62px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 14px;border-bottom:1px solid #edf0f5;background:#fcfdff}.cupps-commandbar .command-title strong,.cupps-commandbar .command-title small{display:block}.cupps-commandbar .command-title strong{font-size:12px}.cupps-commandbar .command-title small{margin-top:2px;font-size:8px;color:#8994a6}.cupps-command-actions{display:flex;align-items:center;flex-wrap:wrap;gap:6px}.cupps-command-actions button{min-height:35px;height:35px;padding:0 11px;font-size:9px;border-radius:9px}.cupps-command-actions .danger-action{color:#b9364c;border-color:#f0cdd4;background:#fff7f8}.cupps-command-actions .success-action{color:#147559;border-color:#cce9de;background:#f5fcf9}.cupps-command-actions button:disabled{opacity:.42}
.cupps-grid-wrap{overflow:auto;max-width:100%}.cupps-grid{width:100%;border-collapse:collapse;font-size:10px}.cupps-grid th,.cupps-grid td{padding:11px 13px;border-bottom:1px solid #edf0f5;text-align:start;white-space:nowrap}.cupps-grid th{position:sticky;top:0;background:#f8fafe;color:#718098;font-size:8px;font-weight:850;z-index:1}.cupps-grid tbody tr{cursor:pointer;transition:background .14s,box-shadow .14s}.cupps-grid tbody tr:hover{background:#f8faff}.cupps-grid tbody tr.selected{background:#eef4ff;box-shadow:inset 3px 0 #3157d5}.cupps-grid .muted{color:#8b95a8}.cupps-grid-empty{padding:36px;text-align:center;color:#8a95a7;font-size:10px}.airline-cell{display:flex;align-items:center;gap:9px}.airline-logo{width:34px;height:34px;border-radius:9px;object-fit:contain;border:1px solid #e2e7ef;background:#fff;padding:3px}.airline-logo-fallback{width:34px;height:34px;display:grid;place-items:center;border-radius:9px;background:#edf2ff;color:#3157d5;font-weight:900;font-size:10px}.airline-cell strong,.airline-cell small{display:block}.airline-cell small{font-size:8px;color:#8b95a7}
.cupps-status{display:inline-flex;align-items:center;gap:5px;padding:4px 8px;border-radius:14px;font-size:8px;font-weight:800}.cupps-status.active{background:#eaf8f2;color:#15775a}.cupps-status.inactive{background:#f0f2f5;color:#747f91}.cupps-status:before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor}
.cupps-modal-backdrop{position:fixed;inset:0;z-index:210;display:grid;place-items:center;padding:20px;background:rgba(7,15,28,.55);backdrop-filter:blur(4px)}.cupps-modal{width:min(820px,96vw);max-height:90vh;overflow:auto;border:1px solid #dce3ee;border-radius:17px;background:#fff;box-shadow:0 30px 90px rgba(6,14,27,.32)}.cupps-modal.small{width:min(480px,94vw)}.cupps-modal>header{position:sticky;top:0;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px 17px;border-bottom:1px solid #edf0f5;background:rgba(255,255,255,.97);backdrop-filter:blur(10px)}.cupps-modal>header span{font-size:8px;letter-spacing:.1em;color:#3157d5;font-weight:900}.cupps-modal>header h2{margin:2px 0 0;font-size:16px}.cupps-modal-body{padding:17px}.cupps-modal>footer{position:sticky;bottom:0;display:flex;justify-content:flex-end;gap:7px;padding:12px 17px;border-top:1px solid #edf0f5;background:#fff}.cupps-modal>footer button{min-height:38px;height:38px}.cupps-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.cupps-form-grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}.cupps-form-grid label{font-size:9px;font-weight:750;color:#46536a}.cupps-form-grid label>input,.cupps-form-grid label>select,.cupps-form-grid label>textarea{margin-top:5px}.cupps-form-grid .wide{grid-column:1/-1}.cupps-form-grid textarea{min-height:86px}.cupps-form-section{grid-column:1/-1;margin:6px 0 0;padding-top:9px;border-top:1px solid #edf0f5;color:#3157d5;font-size:9px;font-weight:900}.confirm-copy{margin:0;color:#5d687b;font-size:10px;line-height:1.85}.confirm-warning{margin-top:10px;padding:9px 11px;border-radius:9px;background:#fff5f6;color:#a8384c;font-size:9px}.cupps-form-error{margin:0 0 10px;padding:9px 11px;border-radius:9px;background:#fff1f3;color:#b63d52;font-size:9px}
.cupps-report-panel{padding:16px;border:1px solid #e1e7f0;border-radius:15px;background:#fff;box-shadow:0 7px 22px rgba(24,39,75,.045)}.cupps-report-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.cupps-report-head h2{margin:0;font-size:13px}.cupps-report-head p{margin:2px 0 0;color:#8792a4;font-size:8px}.cupps-report-head select{width:auto;min-width:130px;min-height:36px;height:36px;font-size:9px}.cupps-bar-chart{height:230px;display:flex;align-items:flex-end;gap:8px;padding:18px 8px 0;border-bottom:1px solid #dfe5ee;background:repeating-linear-gradient(to bottom,#f1f4f8 0,#f1f4f8 1px,transparent 1px,transparent 25%)}.cupps-chart-item{height:100%;flex:1;min-width:34px;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;gap:5px}.cupps-chart-item strong{font-size:8px;color:#3f4b61}.cupps-chart-bar{width:min(34px,75%);min-height:3px;border-radius:7px 7px 2px 2px;background:linear-gradient(#5a7fe9,#3157d5);box-shadow:0 4px 10px rgba(49,87,213,.16)}.cupps-chart-item small{font-size:7px;color:#8792a4;writing-mode:horizontal-tb}.cupps-report-grid{display:grid;grid-template-columns:minmax(0,2fr) minmax(260px,.8fr);gap:14px}.cupps-insight-list{display:grid;gap:8px}.cupps-insight{padding:11px;border:1px solid #e6eaf1;border-radius:11px;background:#fbfcff}.cupps-insight span,.cupps-insight strong{display:block}.cupps-insight span{font-size:8px;color:#8792a4}.cupps-insight strong{margin-top:2px;font-size:18px}

/* Unified component typography and action sizing. */
.cupps-shell{font-family:var(--body-font,Vazirmatn),Tahoma,sans-serif!important;font-size:var(--body-size,14px)}
.cupps-shell :where(button,input,select,textarea,a){font-family:inherit!important}.cupps-shell :where(.cupps-table,.cupps-grid){font-family:var(--table-font,var(--body-font,Vazirmatn)),Tahoma,sans-serif!important}
.cupps-hero .hero-actions :where(button,a),.cupps-page-head :where(button,a.button),.maintenance-hero :where(button,a.button),.maintenance-module>header :where(button,a.button){box-sizing:border-box!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;min-height:40px!important;height:40px!important;padding:0 14px!important;line-height:1!important;white-space:nowrap}

/* Dialogs keep chrome fixed and scroll only the form body. */
.cupps-modal{display:flex!important;flex-direction:column!important;overflow:hidden!important;max-height:min(88vh,840px)!important}.cupps-modal>header,.cupps-modal>footer{position:relative!important;flex:0 0 auto!important}.cupps-modal-body{min-height:0!important;overflow-y:auto!important;overscroll-behavior:contain}.modal-close{min-width:40px!important;padding:0!important}.file-upload-field{margin-top:5px;padding:10px;border:1px dashed #cdd7e6;border-radius:10px;background:#fafcff;display:grid;gap:5px}.file-upload-field input[type=file]{min-height:36px;height:auto}.file-upload-field small{font-size:8px;color:#8290a4}.logo-preview-row{display:flex;align-items:center;gap:10px;margin-top:8px}.logo-preview-row img{width:64px;height:50px;object-fit:contain;border:1px solid #e0e6ef;border-radius:9px;background:#fff}.logo-preview-row button{min-height:32px!important;height:32px!important;color:#a8394e!important;background:#fff5f6!important;border-color:#efd0d6!important}.field-validation-error{display:block;margin-top:4px;color:#b9364c;font-size:8px;font-weight:700}.cupps-context-note{padding:9px 11px;margin:0 0 11px;border-radius:9px;background:#f3f7fd;color:#4e5d72;font-size:9px}
.cupps-directory-split{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px;align-items:start}.event-panel-head{gap:14px}.event-panel-head>div h2,.event-panel-head>div span{display:block}.page-size-selector{display:flex!important;align-items:center;gap:7px;color:#69788e;font-size:9px}.page-size-selector select{width:78px;min-height:34px;height:34px;padding:0 8px}.cupps-pagination{display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap;padding:12px 15px;border-top:1px solid #edf0f5;background:#fcfdff}.cupps-pagination>button,.page-numbers button{min-height:34px!important;height:34px!important;padding:0 10px!important;color:#45556d!important;background:#fff!important;border-color:#dce3ed!important}.page-numbers{display:flex;gap:4px}.page-numbers button{min-width:34px;padding:0!important}.page-numbers button.active{background:#3157d5!important;color:#fff!important;border-color:#3157d5!important}.cupps-pagination span{font-size:9px;color:#7b8799}

@media(max-width:900px){.cupps-form-grid.three{grid-template-columns:1fr 1fr}.cupps-report-grid{grid-template-columns:1fr}.cupps-directory-split{grid-template-columns:1fr}.cupps-page-head,.maintenance-hero{align-items:flex-start!important;flex-direction:column!important}.cupps-commandbar{align-items:flex-start;flex-direction:column}.cupps-command-actions{width:100%}}
@media(max-width:620px){.cupps-page-head,.maintenance-hero{padding:14px 15px!important;min-height:auto!important}.cupps-page-head h1,.maintenance-hero h2{font-size:18px!important}.cupps-form-grid,.cupps-form-grid.three{grid-template-columns:1fr}.cupps-form-grid .wide{grid-column:auto}.cupps-modal-backdrop{padding:8px}.cupps-bar-chart{overflow-x:auto}.cupps-chart-item{min-width:44px}}
