/* si-SUKSMA Enterprise UI 2026 — shared CRUD design system */
:root{
    --ent-primary:#38bdf8;
    --ent-primary-dark:#2563eb;
    --ent-accent:#0ea5e9;
    --ent-bg:#f5faff;
    --ent-surface:#fff;
    --ent-border:#dcebff;
    --ent-success:#22c55e;
    --ent-warning:#f59e0b;
    --ent-danger:#ef4444;
    --ent-text:#0f172a;
    --ent-soft:#64748b;
    --ent-radius:20px;
    --ent-shadow:0 8px 24px rgba(37,99,235,.08);
}

/* =========================================================
   DATA PTK — COMPACT ENTERPRISE LIST & FORM
   ========================================================= */
body.suksma-enterprise-page .ptk-master .page-header-modern{
    min-height:128px!important;
    padding:20px 30px!important;
    margin-bottom:14px!important;
}
body.suksma-enterprise-page .ptk-master .page-header-modern h3{
    font-size:27px!important;
    margin-bottom:2px!important;
}
.ptk-master .ptk-master-toolbar{
    display:grid;
    grid-template-columns:minmax(320px,1.15fr) minmax(390px,.85fr);
    gap:10px 14px;
    margin:0 0 14px;
    padding:13px 15px;
    background:#fff;
    border:1px solid #dcebff;
    border-radius:17px;
    box-shadow:0 8px 24px rgba(37,99,235,.07);
}
.ptk-master .ptk-search-form{margin:0}
.ptk-master .search-modern{margin:0!important}
.ptk-master .search-modern input{
    min-height:44px!important;
    border-radius:14px!important;
}
.ptk-master .ptk-master-filters{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:10px;
}
.ptk-master .ptk-master-filters label{
    position:relative;
    margin:0;
}
.ptk-master .ptk-master-filters i{
    position:absolute;
    z-index:2;
    left:14px;
    top:50%;
    color:#0ea5e9;
    transform:translateY(-50%);
}
.ptk-master .ptk-master-filters select{
    width:100%;
    min-height:44px;
    padding:0 34px 0 40px;
    color:#294d72;
    font-size:12px;
    font-weight:700;
    background:#fbfdff;
    border:1px solid #cfe3f6;
    border-radius:14px;
    outline:none;
}
.ptk-master .ptk-master-actions{
    grid-column:1/-1;
    display:flex;
    align-items:center;
    justify-content:flex-end;
    gap:8px;
}
.ptk-master .ptk-filter-result{
    margin-right:auto;
    color:#64748b;
    font-size:11px;
    font-weight:700;
}
.ptk-master .ptk-toolbar-btn,
.ptk-master .ptk-toolbar-add{
    min-height:38px;
    padding:7px 13px;
    color:#28618f;
    font-size:11px;
    font-weight:800;
    background:#fff;
    border:1px solid #cfe3f6;
    border-radius:11px;
    box-shadow:0 4px 12px rgba(37,99,235,.05);
}
.ptk-master .ptk-toolbar-add{
    color:#fff;
    background:linear-gradient(135deg,#38bdf8,#2563eb);
    border-color:transparent;
}
.ptk-master .ptk-toolbar-btn:hover,
.ptk-master .ptk-toolbar-add:hover{
    transform:translateY(-2px);
}
.ptk-master .dropdown-menu{
    padding:7px;
    border:1px solid #dcebff;
    border-radius:13px;
    box-shadow:0 14px 34px rgba(15,23,42,.13);
}
.ptk-master .dropdown-item{
    padding:9px 12px;
    font-size:12px;
    font-weight:700;
    border-radius:9px;
}
body.suksma-enterprise-page .ptk-master .modern-card{
    border-radius:17px!important;
}
body.suksma-enterprise-page .ptk-master .table-modern th{
    height:47px!important;
    padding:9px 14px!important;
}
body.suksma-enterprise-page .ptk-master .table-modern td{
    height:54px!important;
    padding:9px 14px!important;
}
.ptk-master .td-Nama{font-weight:800;color:#17385c}
.ptk-master .td-NIP{font-variant-numeric:tabular-nums;color:#476783}
.ptk-master .td-Pangkat_Golongan span{
    display:inline-block;
    padding:5px 9px;
    color:#2563eb;
    background:#eff6ff;
    border-radius:999px;
}
.ptk-master .footer-modern{display:none!important}

.ptk-add-page .container-fluid{max-width:1280px;padding:18px 24px 28px}
.ptk-add-hero{
    display:flex;
    align-items:center;
    justify-content:space-between;
    min-height:126px;
    padding:20px 28px;
    margin-bottom:14px;
    color:#fff;
    background:linear-gradient(120deg,#2563eb,#0ea5e9 68%,#67e8f9);
    border-radius:20px;
    box-shadow:0 12px 30px rgba(37,99,235,.15);
}
.ptk-add-heading{display:flex;align-items:center;gap:16px}
.ptk-add-icon{
    display:grid;
    place-items:center;
    width:52px;height:52px;
    font-size:21px;
    background:rgba(255,255,255,.18);
    border:1px solid rgba(255,255,255,.22);
    border-radius:15px;
}
.ptk-add-heading h1{margin:0 0 5px;font-size:26px;font-weight:850}
.ptk-add-heading p{margin:0;font-size:13px;color:rgba(255,255,255,.84)}
.ptk-add-nav{display:flex;gap:8px}
.ptk-add-nav .btn{
    padding:9px 13px;
    color:#24496d;
    font-size:12px;
    font-weight:800;
    border:0;
    border-radius:11px;
}
.ptk-form-card{
    overflow:hidden;
    background:#fff;
    border:1px solid #dcebff;
    border-radius:19px;
    box-shadow:0 9px 26px rgba(37,99,235,.08);
}
.ptk-form-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:18px 24px;
    background:linear-gradient(180deg,#fbfdff,#f6fbff);
    border-bottom:1px solid #e3effc;
}
.ptk-form-eyebrow{color:#0ea5e9;font-size:10px;font-weight:900;letter-spacing:.1em}
.ptk-form-head h2{margin:2px 0;font-size:20px;font-weight:850;color:#12365d}
.ptk-form-head p{margin:0;color:#64748b;font-size:12px}
.ptk-form-step{padding:7px 11px;color:#16824c;font-size:11px;font-weight:800;background:#ecfdf5;border-radius:999px}
.ptk-form-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:17px 20px;
    padding:22px 24px;
}
.ptk-field label{display:block;margin-bottom:7px;color:#23496e;font-size:12px;font-weight:800}
.ptk-field label i{width:18px;color:#0ea5e9}
.ptk-field label span{color:#ef4444}
.ptk-field .form-control{
    height:46px;
    padding:0 14px;
    color:#0f172a;
    font-size:13px;
    border:1px solid #cfe3f6;
    border-radius:13px;
    box-shadow:none;
}
.ptk-field .form-control:focus{border-color:#38bdf8;box-shadow:0 0 0 3px rgba(56,189,248,.13)}
.ptk-form-footer{
    display:flex;
    align-items:center;
    justify-content:flex-end;
    gap:9px;
    padding:15px 24px;
    background:#f9fcff;
    border-top:1px solid #e3effc;
}
.ptk-form-footer .form-ajax-status{margin-right:auto}
.ptk-btn-cancel,.ptk-btn-save{padding:9px 15px;font-size:12px;font-weight:800;border-radius:11px}
.ptk-btn-cancel{color:#526c85;background:#fff;border:1px solid #cfe3f6}
.ptk-btn-save{color:#fff;background:linear-gradient(135deg,#38bdf8,#2563eb);border:0;box-shadow:0 7px 16px rgba(37,99,235,.18)}
.ptk-btn-cancel:hover,.ptk-btn-save:hover{transform:translateY(-2px)}

@media(max-width:991px){
    .ptk-master .ptk-master-toolbar{grid-template-columns:1fr}
    .ptk-master .ptk-master-filters{grid-column:1}
    .ptk-add-hero{align-items:flex-start;flex-direction:column;gap:16px}
}
@media(max-width:768px){
    body.suksma-enterprise-page .ptk-master .page-header-modern{min-height:140px!important;padding:20px!important}
    .ptk-master .ptk-master-filters,.ptk-form-grid{grid-template-columns:1fr}
    .ptk-master .ptk-master-actions{align-items:stretch;flex-direction:column}
    .ptk-master .ptk-filter-result{margin:0 0 3px}
    .ptk-master .ptk-toolbar-btn,.ptk-master .ptk-toolbar-add,.ptk-master .ptk-master-actions .dropdown{width:100%}
    .ptk-add-page .container-fluid{padding:12px}
    .ptk-add-heading{align-items:flex-start}
    .ptk-add-heading h1{font-size:23px}
    .ptk-add-nav{width:100%}
    .ptk-add-nav .btn{flex:1}
    .ptk-form-head{align-items:flex-start;flex-direction:column;gap:10px}
    .ptk-form-footer{flex-wrap:wrap}
}

body.suksma-enterprise-page #page-content{
    min-height:calc(100vh - var(--sk-topbar));
    padding:24px 28px 40px;
    background:linear-gradient(145deg,#fff 0%,var(--ent-bg) 48%,#edf8ff 100%);
}

body.suksma-enterprise-page .page{
    width:100%;
    max-width:none;
    color:var(--ent-text);
    animation:enterpriseFade .28s ease both;
}

body.suksma-enterprise-page .page>.container,
body.suksma-enterprise-page .page>.container-fluid,
body.suksma-enterprise-page .page .container,
body.suksma-enterprise-page .page .container-fluid{
    width:100%;
    max-width:none!important;
}

body.suksma-enterprise-page .page>.container,
body.suksma-enterprise-page .page>.container-fluid{
    padding-right:0!important;
    padding-left:0!important;
}

@keyframes enterpriseFade{
    from{opacity:0;transform:translateY(5px)}
    to{opacity:1;transform:none}
}

/* Shared hero */
body.suksma-enterprise-page .page-header-modern,
body.suksma-enterprise-page .enterprise-hero{
    position:relative!important;
    isolation:isolate;
    overflow:hidden!important;
    min-height:174px;
    margin:0 0 20px!important;
    padding:28px 30px!important;
    border:1px solid rgba(255,255,255,.25)!important;
    border-radius:24px!important;
    color:#fff!important;
    background:linear-gradient(125deg,#2563eb 0%,#169be7 52%,#67e8f9 100%)!important;
    box-shadow:0 16px 38px rgba(37,99,235,.18)!important;
}

body.suksma-enterprise-page .page-header-modern:before,
body.suksma-enterprise-page .enterprise-hero:before{
    position:absolute;
    z-index:-1;
    top:-100px;
    right:-45px;
    width:280px;
    height:280px;
    border-radius:50%;
    background:rgba(255,255,255,.12);
    content:"";
}

body.suksma-enterprise-page .page-header-modern:after,
body.suksma-enterprise-page .enterprise-hero:after{
    position:absolute;
    z-index:-1;
    right:170px;
    bottom:-100px;
    width:190px;
    height:190px;
    border-radius:50%;
    background:rgba(255,255,255,.08);
    content:"";
}

body.suksma-enterprise-page .page-header-modern h3,
body.suksma-enterprise-page .enterprise-hero .record-title{
    display:flex;
    align-items:center;
    gap:12px;
    margin:0!important;
    color:#fff!important;
    font-size:30px!important;
    font-weight:800!important;
    letter-spacing:-.5px;
}

body.suksma-enterprise-page .page-header-modern h3 i,
body.suksma-enterprise-page .enterprise-hero .record-title i{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:46px;
    height:46px;
    border-radius:14px;
    background:rgba(255,255,255,.16);
    font-size:21px;
}

body.suksma-enterprise-page .page-header-modern p,
body.suksma-enterprise-page .enterprise-hero .enterprise-subtitle{
    margin:8px 0 0!important;
    color:rgba(255,255,255,.9)!important;
    font-size:14px!important;
}

body.suksma-enterprise-page .badge-total{
    min-width:145px;
    padding:13px 17px!important;
    border:1px solid rgba(255,255,255,.28)!important;
    border-radius:14px!important;
    color:#fff!important;
    background:rgba(255,255,255,.14)!important;
    box-shadow:none!important;
    font-size:14px!important;
    font-weight:750!important;
    backdrop-filter:blur(10px);
}

body.suksma-enterprise-page .top-action{
    display:flex!important;
    align-items:center;
    flex-wrap:wrap;
    gap:10px!important;
    margin-top:22px!important;
}

/* Buttons */
body.suksma-enterprise-page .btn-modern,
body.suksma-enterprise-page .page .btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    min-height:42px;
    padding:9px 15px;
    border:1px solid transparent;
    border-radius:12px!important;
    font-size:13px;
    font-weight:750;
    text-decoration:none!important;
    box-shadow:0 5px 13px rgba(15,23,42,.08);
    transition:transform .2s ease,box-shadow .2s ease,background .2s ease;
}

body.suksma-enterprise-page .btn-modern:hover,
body.suksma-enterprise-page .page .btn:hover{
    box-shadow:0 10px 20px rgba(37,99,235,.14);
    transform:translateY(-2px);
}

body.suksma-enterprise-page .btn-add,
body.suksma-enterprise-page .btn-primary,
body.suksma-enterprise-page .btn-primary-modern{
    border-color:transparent!important;
    color:#fff!important;
    background:linear-gradient(135deg,#38bdf8,#2563eb)!important;
}

body.suksma-enterprise-page .btn-back,
body.suksma-enterprise-page .btn-secondary{
    border-color:#d6e7f7!important;
    color:#355674!important;
    background:#fff!important;
}

body.suksma-enterprise-page .btn-export,
body.suksma-enterprise-page .btn-outline-primary{
    border-color:#b9ddfa!important;
    color:#137fc9!important;
    background:#f7fcff!important;
}

body.suksma-enterprise-page .btn-danger,
body.suksma-enterprise-page .btn-danger-modern{
    color:#fff!important;
    background:#ef4444!important;
}

/* Toolbar and search */
body.suksma-enterprise-page form:has(.search-modern){
    margin:0 0 18px;
    padding:14px;
    border:1px solid var(--ent-border);
    border-radius:18px;
    background:#fff;
    box-shadow:var(--ent-shadow);
}

body.suksma-enterprise-page .search-modern{
    position:relative!important;
    width:100%!important;
    max-width:none!important;
    margin:0!important;
}

body.suksma-enterprise-page .search-modern i{
    position:absolute!important;
    z-index:2;
    top:50%!important;
    left:17px!important;
    color:#4b7ba5!important;
    transform:translateY(-50%);
}

body.suksma-enterprise-page .search-modern input{
    width:100%!important;
    min-height:48px!important;
    padding:10px 16px 10px 46px!important;
    border:1px solid #cfe3f6!important;
    border-radius:13px!important;
    outline:0;
    color:var(--ent-text);
    background:#fbfdff!important;
    font-size:14px!important;
}

body.suksma-enterprise-page .search-modern input:focus{
    border-color:var(--ent-primary)!important;
    box-shadow:0 0 0 4px rgba(56,189,248,.13)!important;
}

/* Data card and tables */
body.suksma-enterprise-page .modern-card,
body.suksma-enterprise-page .footer-modern,
body.suksma-enterprise-page .page-content.card{
    overflow:hidden;
    border:1px solid var(--ent-border)!important;
    border-radius:20px!important;
    background:#fff!important;
    box-shadow:var(--ent-shadow)!important;
}

body.suksma-enterprise-page .table-wrapper{
    overflow-x:auto!important;
    border-radius:20px;
}

body.suksma-enterprise-page .table-modern,
body.suksma-enterprise-page .page table.table{
    width:100%!important;
    margin:0!important;
    border-collapse:separate!important;
    border-spacing:0!important;
    color:#243b53!important;
    background:#fff!important;
    font-size:14px!important;
}

body.suksma-enterprise-page .table-modern thead,
body.suksma-enterprise-page .page table.table thead{
    background:#edf7ff!important;
}

body.suksma-enterprise-page .table-modern th,
body.suksma-enterprise-page .page table.table th{
    height:54px!important;
    padding:12px 15px!important;
    border:0!important;
    border-bottom:1px solid #cfe5f8!important;
    color:#24517a!important;
    background:#edf7ff!important;
    font-size:12px!important;
    font-weight:800!important;
    letter-spacing:.15px;
    text-transform:none!important;
    white-space:nowrap;
}

body.suksma-enterprise-page .table-modern td,
body.suksma-enterprise-page .page table.table td{
    min-height:60px!important;
    padding:15px!important;
    border:0!important;
    border-bottom:1px solid #edf3f8!important;
    color:#334e68!important;
    font-size:13px!important;
    line-height:1.55;
    vertical-align:middle!important;
}

body.suksma-enterprise-page .table-modern tbody tr,
body.suksma-enterprise-page .page table.table tbody tr{
    transition:background .2s ease,transform .2s ease;
}

body.suksma-enterprise-page .table-modern tbody tr:hover,
body.suksma-enterprise-page .page table.table tbody tr:hover{
    background:#f3faff!important;
}

body.suksma-enterprise-page .table-modern tbody tr:last-child td{
    border-bottom:0!important;
}

body.suksma-enterprise-page .action-btn{
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    width:36px!important;
    height:36px!important;
    margin:2px!important;
    padding:0!important;
    border:1px solid #d8e9f7!important;
    border-radius:10px!important;
    color:#35739f!important;
    background:#f8fcff!important;
    box-shadow:none!important;
    transition:.2s!important;
}

body.suksma-enterprise-page .action-btn:hover{
    border-color:#9fd4f5!important;
    color:#087fd0!important;
    background:#eaf7ff!important;
    transform:translateY(-2px);
}

body.suksma-enterprise-page .action-btn.btn-delete{
    border-color:#fee2e2!important;
    color:#dc3545!important;
    background:#fff7f7!important;
}

body.suksma-enterprise-page .status-badge,
body.suksma-enterprise-page .badge{
    padding:6px 10px!important;
    border-radius:999px!important;
    font-size:11px!important;
    font-weight:750!important;
}

body.suksma-enterprise-page .footer-modern{
    margin-top:14px!important;
    padding:14px 18px!important;
}

body.suksma-enterprise-page .pagination .page-link{
    min-width:36px;
    min-height:36px;
    margin:0 3px;
    border:1px solid var(--ent-border);
    border-radius:10px!important;
    color:#35739f;
}

body.suksma-enterprise-page .pagination .active .page-link{
    border-color:transparent;
    color:#fff;
    background:linear-gradient(135deg,#38bdf8,#2563eb);
}

/* Form pages */
body.suksma-enterprise-page .page[data-page-type="add"]>.bg-light,
body.suksma-enterprise-page .page[data-page-type="edit"]>.bg-light{
    margin-bottom:20px!important;
}

body.suksma-enterprise-page .enterprise-hero .container,
body.suksma-enterprise-page .enterprise-hero .container-fluid{
    padding:0!important;
}

body.suksma-enterprise-page .enterprise-hero .col-sm-3{
    max-width:none;
    padding:0;
}

body.suksma-enterprise-page .enterprise-hero .btn{
    margin-bottom:18px;
}

body.suksma-enterprise-page .page[data-page-type="add"] .comp-grid,
body.suksma-enterprise-page .page[data-page-type="edit"] .comp-grid{
    flex:0 0 100%!important;
    max-width:100%!important;
}

body.suksma-enterprise-page .enterprise-form-card{
    width:min(100%,1100px);
    margin:0 auto!important;
    padding:28px!important;
    border:1px solid var(--ent-border)!important;
    border-radius:22px!important;
    background:#fff!important;
    box-shadow:var(--ent-shadow)!important;
}

body.suksma-enterprise-page .enterprise-form-card:before{
    display:block;
    margin-bottom:24px;
    padding-bottom:17px;
    border-bottom:1px solid #e8f1f9;
    color:#173f66;
    content:"Informasi Data";
    font-size:19px;
    font-weight:800;
}

body.suksma-enterprise-page .page-form .form-group{
    margin-bottom:18px!important;
}

body.suksma-enterprise-page .page-form .form-group>.row,
body.suksma-enterprise-page .page-form>.form-group.row{
    align-items:center;
    margin:0!important;
    padding:10px 8px;
    border-radius:14px;
    transition:background .2s ease;
}

body.suksma-enterprise-page .page-form .form-group>.row:hover,
body.suksma-enterprise-page .page-form>.form-group.row:hover{
    background:#f8fcff;
}

body.suksma-enterprise-page .page-form label{
    margin:0!important;
    color:#274963!important;
    font-size:14px!important;
    font-weight:750!important;
}

body.suksma-enterprise-page .page-form .form-control,
body.suksma-enterprise-page .page-form .custom-select,
body.suksma-enterprise-page .page-form select,
body.suksma-enterprise-page .page-form textarea{
    width:100%;
    min-height:48px!important;
    padding:10px 13px;
    border:1px solid #cfe0ef!important;
    border-radius:12px!important;
    color:var(--ent-text)!important;
    background:#fff!important;
    font-size:14px!important;
    box-shadow:none!important;
}

body.suksma-enterprise-page .page-form textarea{
    min-height:110px!important;
    resize:vertical;
}

body.suksma-enterprise-page .page-form .form-control:focus,
body.suksma-enterprise-page .page-form .custom-select:focus,
body.suksma-enterprise-page .page-form textarea:focus{
    border-color:var(--ent-primary)!important;
    box-shadow:0 0 0 4px rgba(56,189,248,.13)!important;
}

body.suksma-enterprise-page .page-form .input-group-text{
    min-height:48px;
    border:1px solid #cfe0ef!important;
    border-radius:0 12px 12px 0!important;
    color:#1685ce;
    background:#edf8ff!important;
}

body.suksma-enterprise-page .form-submit-btn-holder{
    display:flex;
    align-items:center;
    justify-content:flex-end;
    gap:10px;
    margin-top:25px!important;
    padding-top:20px;
    border-top:1px solid #e7f0f8;
}

body.suksma-enterprise-page .dropzone{
    min-height:105px;
    border:1px dashed #7fcaf5!important;
    border-radius:14px!important;
    background:#f5fbff!important;
}

/* Detail pages */
body.suksma-enterprise-page .surat-card,
body.suksma-enterprise-page .page[data-page-type="view"] .card,
body.suksma-enterprise-page .page[data-page-type="view"] .page-content{
    overflow:hidden;
    border:1px solid var(--ent-border)!important;
    border-radius:22px!important;
    background:#fff!important;
    box-shadow:var(--ent-shadow)!important;
}

body.suksma-enterprise-page .card-header-modern,
body.suksma-enterprise-page .page[data-page-type="view"] .card-header{
    position:relative;
    padding:25px 28px!important;
    border:0!important;
    color:#fff!important;
    background:linear-gradient(125deg,#2563eb,#1ea9ec,#67e8f9)!important;
}

body.suksma-enterprise-page .card-header-modern h3,
body.suksma-enterprise-page .page[data-page-type="view"] .card-header h3,
body.suksma-enterprise-page .page[data-page-type="view"] .card-header h4{
    margin:0;
    color:#fff!important;
    font-size:25px!important;
    font-weight:800!important;
}

body.suksma-enterprise-page .surat-table{
    width:100%;
    border-collapse:separate;
    border-spacing:0;
}

body.suksma-enterprise-page .surat-table th{
    width:230px!important;
    padding:17px 20px!important;
    border-bottom:1px solid #e6f0f8!important;
    color:#315777!important;
    background:#f6fbff!important;
    font-size:13px!important;
}

body.suksma-enterprise-page .surat-table td{
    padding:17px 20px!important;
    border-bottom:1px solid #edf3f8!important;
    color:#1f3d5a!important;
    font-size:14px!important;
}

body.suksma-enterprise-page .file-box,
body.suksma-enterprise-page .export-box{
    border:1px solid var(--ent-border)!important;
    border-radius:14px!important;
    background:#f6fbff!important;
}

body.suksma-enterprise-page .export-links a{
    border:1px solid #cfe3f4!important;
    border-radius:10px!important;
    color:#2874a8!important;
    background:#fff!important;
}

body.suksma-enterprise-page .export-links a:hover{
    color:#fff!important;
    background:#258be0!important;
}

/* Modal and dropdown consistency */
body.with-login .modal-content,
body.with-login .dropdown-menu{
    overflow:hidden;
    border:1px solid var(--ent-border)!important;
    border-radius:15px!important;
    box-shadow:0 18px 45px rgba(15,54,92,.16)!important;
}

body.with-login .dropdown-item{
    padding:10px 14px;
    color:#315777;
    font-size:13px;
}

body.with-login .dropdown-item:hover{
    color:#087eca;
    background:#eff8ff;
}

@media(max-width:992px){
    body.suksma-enterprise-page #page-content{padding:20px}
    body.suksma-enterprise-page .page-header-modern,
    body.suksma-enterprise-page .enterprise-hero{min-height:155px;padding:24px!important}
    body.suksma-enterprise-page .page-header-modern h3,
    body.suksma-enterprise-page .enterprise-hero .record-title{font-size:26px!important}
}

@media(max-width:768px){
    body.suksma-enterprise-page #page-content{padding:14px 12px 30px}
    body.suksma-enterprise-page .page-header-modern,
    body.suksma-enterprise-page .enterprise-hero{min-height:auto;padding:21px!important;border-radius:19px!important}
    body.suksma-enterprise-page .page-header-modern h3,
    body.suksma-enterprise-page .enterprise-hero .record-title{font-size:23px!important}
    body.suksma-enterprise-page .badge-total{width:100%;margin-top:15px}
    body.suksma-enterprise-page .top-action{align-items:stretch;flex-direction:column}
    body.suksma-enterprise-page .top-action>*,
    body.suksma-enterprise-page .top-action .btn-modern{width:100%}
    body.suksma-enterprise-page .enterprise-form-card{padding:18px!important;border-radius:18px!important}
    body.suksma-enterprise-page .page-form .form-group>.row{padding:6px 0}
    body.suksma-enterprise-page .page-form label{margin-bottom:7px!important}
    body.suksma-enterprise-page .form-submit-btn-holder{align-items:stretch;flex-direction:column}
    body.suksma-enterprise-page .form-submit-btn-holder .btn{width:100%}
    body.suksma-enterprise-page .surat-table th,
    body.suksma-enterprise-page .surat-table td{display:block;width:100%!important}
    body.suksma-enterprise-page .surat-table th{padding-bottom:7px!important;border-bottom:0!important}
    body.suksma-enterprise-page .surat-table td{padding-top:7px!important}
}

/* =========================================================
   MASTER TEMPLATE — SURAT KELUAR
========================================================= */
body.suksma-enterprise-page .surat-keluar-master .page-header-modern{
    display:flex;
    min-height:190px;
    flex-direction:column;
    justify-content:center;
    padding:32px 34px!important;
}

body.suksma-enterprise-page .surat-keluar-master .page-header-modern h3{
    font-size:34px!important;
    text-transform:uppercase;
}

body.suksma-enterprise-page .surat-keluar-master .page-header-modern p{
    font-size:15px!important;
}

body.suksma-enterprise-page .surat-keluar-master .badge-total{
    min-width:175px;
    padding:18px 20px!important;
    border-radius:18px!important;
    font-size:15px!important;
    text-align:center;
}

.surat-keluar-master .sk-master-toolbar{
    display:grid;
    grid-template-columns:minmax(310px,1.15fr) minmax(560px,1.85fr);
    align-items:center;
    gap:14px 18px;
    margin-bottom:20px;
    padding:18px;
    border:1px solid var(--ent-border);
    border-radius:20px;
    background:#fff;
    box-shadow:var(--ent-shadow);
}

body.suksma-enterprise-page .surat-keluar-master .sk-master-search,
body.suksma-enterprise-page .surat-keluar-master .sk-master-search:has(.search-modern){
    margin:0!important;
    padding:0!important;
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
    box-shadow:none!important;
}

.surat-keluar-master .sk-master-search .search-modern input{
    min-height:50px!important;
    border-radius:16px!important;
}

.surat-keluar-master .sk-master-filters{
    display:grid;
    grid-template-columns:repeat(3,minmax(150px,1fr));
    gap:10px;
}

.surat-keluar-master .sk-filter-control{
    position:relative;
    display:flex;
    align-items:center;
    min-width:0;
    margin:0!important;
}

.surat-keluar-master .sk-filter-control i{
    position:absolute;
    z-index:2;
    left:14px;
    color:#2f86be;
    pointer-events:none;
}

.surat-keluar-master .sk-filter-control select{
    width:100%;
    min-height:50px;
    padding:9px 32px 9px 40px;
    border:1px solid #cfe3f6;
    border-radius:14px;
    outline:0;
    color:#355977;
    background:#fbfdff;
    font-size:13px;
    font-weight:650;
    cursor:pointer;
}

.surat-keluar-master .sk-filter-control select:focus{
    border-color:var(--ent-primary);
    box-shadow:0 0 0 4px rgba(56,189,248,.13);
}

.surat-keluar-master .sk-master-actions{
    display:flex;
    grid-column:1/-1;
    align-items:center;
    justify-content:flex-end;
    flex-wrap:wrap;
    gap:9px;
    padding-top:2px;
}

.surat-keluar-master .sk-toolbar-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    min-height:42px;
    padding:9px 14px;
    border:1px solid transparent;
    border-radius:12px;
    font-size:12px;
    font-weight:750;
    text-decoration:none!important;
    box-shadow:0 5px 13px rgba(15,23,42,.06);
    cursor:pointer;
    transition:transform .2s ease,box-shadow .2s ease,background .2s ease;
}

.surat-keluar-master .sk-toolbar-btn:hover{
    box-shadow:0 10px 20px rgba(37,99,235,.13);
    transform:translateY(-2px) scale(1.02);
}

.surat-keluar-master .sk-toolbar-outline{
    border-color:#cfe3f6;
    color:#35739f!important;
    background:#fff;
}

.surat-keluar-master .sk-toolbar-secondary{
    border-color:#a9e8e4;
    color:#088d86!important;
    background:#effcfb;
}

.surat-keluar-master .sk-toolbar-primary{
    color:#fff!important;
    background:linear-gradient(135deg,#38bdf8,#2563eb);
}

.surat-keluar-master .export-menu-modern .dropdown-menu{
    min-width:170px;
    padding:7px;
}

.surat-keluar-master .export-menu-modern .dropdown-item{
    display:flex;
    align-items:center;
    gap:9px;
    border-radius:9px;
    text-transform:none;
}

.surat-keluar-master .modern-card{
    border-radius:22px!important;
    transition:transform .2s ease,box-shadow .2s ease;
}

.surat-keluar-master .modern-card:hover{
    box-shadow:0 13px 34px rgba(37,99,235,.11)!important;
    transform:translateY(-2px);
}

body.suksma-enterprise-page .surat-keluar-master .table-modern th{
    height:58px!important;
    padding:14px 16px!important;
    font-size:13px!important;
}

body.suksma-enterprise-page .surat-keluar-master .table-modern td{
    height:65px!important;
    padding:14px 16px!important;
    font-size:14px!important;
}

.surat-keluar-master .td-Nomor-Surat{
    color:#173f66!important;
    font-weight:800!important;
    white-space:nowrap;
}

.surat-keluar-master .td-Kepada{
    color:#234c70!important;
    font-weight:700!important;
}

.surat-keluar-master .td-Tanggal{
    color:#627f99!important;
    white-space:nowrap;
}

.surat-keluar-master .td-Perihal{
    display:-webkit-box;
    overflow:hidden;
    max-width:330px;
    -webkit-box-orient:vertical;
    -webkit-line-clamp:2;
}

.surat-keluar-master .file-link a{
    display:inline-flex;
    align-items:center;
    gap:6px;
    max-width:150px;
    padding:6px 10px;
    overflow:hidden;
    border:1px solid #cce8fb;
    border-radius:999px;
    color:#167fc8!important;
    background:#eff9ff;
    font-size:11px;
    font-weight:700;
    text-overflow:ellipsis;
    white-space:nowrap;
}

.surat-keluar-master input[type="checkbox"]{
    width:18px;
    height:18px;
    accent-color:var(--ent-primary-dark);
    cursor:pointer;
}

body.suksma-enterprise-page .surat-keluar-master .action-btn{
    width:38px!important;
    height:38px!important;
    border-radius:50%!important;
    font-size:0!important;
    box-shadow:0 5px 12px rgba(15,23,42,.06)!important;
}

body.suksma-enterprise-page .surat-keluar-master .action-btn i{
    margin:0!important;
    font-size:14px!important;
}

body.suksma-enterprise-page .surat-keluar-master .action-btn:hover{
    transform:translateY(-2px) scale(1.08)!important;
}

body.suksma-enterprise-page .surat-keluar-master .btn-view{
    border-color:#bbf7d0!important;
    color:#159447!important;
    background:#f0fdf4!important;
}

body.suksma-enterprise-page .surat-keluar-master .btn-edit{
    border-color:#bfdbfe!important;
    color:#1d74d5!important;
    background:#eff6ff!important;
}

body.suksma-enterprise-page .surat-keluar-master .btn-delete{
    border-color:#fecaca!important;
    color:#dc3545!important;
    background:#fff1f2!important;
}

.surat-keluar-master .sk-filter-result{
    margin-right:auto;
    color:#6b8399;
    font-size:12px;
    font-weight:650;
}

.surat-keluar-master .sk-no-filter-result td{
    padding:40px!important;
    color:#64748b!important;
    text-align:center;
}

@media(max-width:1250px){
    .surat-keluar-master .sk-master-toolbar{
        grid-template-columns:1fr;
    }
    .surat-keluar-master .sk-master-actions{
        grid-column:auto;
        justify-content:flex-start;
    }
}

/* PTK density correction: gunakan ruang layar untuk menampilkan lebih banyak data */
body.suksma-enterprise-page .ptk-master .page-header-modern{
    min-height:108px!important;
    margin-top:0!important;
    margin-bottom:10px!important;
    padding:16px 26px!important;
}
body.suksma-enterprise-page .ptk-master .page-header-modern h3{
    font-size:25px!important;
}
body.suksma-enterprise-page .ptk-master .page-header-modern p{
    margin-top:2px!important;
    font-size:12px!important;
}
body.suksma-enterprise-page .ptk-master .ptk-search-form,
body.suksma-enterprise-page .ptk-master .ptk-search-form:has(.search-modern){
    margin:0!important;
    padding:0!important;
    background:transparent!important;
    border:0!important;
    border-radius:0!important;
    box-shadow:none!important;
}
body.suksma-enterprise-page .ptk-master .ptk-master-toolbar{
    gap:8px 12px;
    margin-bottom:10px;
    padding:10px 12px;
}
body.suksma-enterprise-page .ptk-master .ptk-master-actions{
    min-height:36px;
}
body.suksma-enterprise-page .ptk-master .table-modern th{
    height:43px!important;
    padding:7px 13px!important;
}
body.suksma-enterprise-page .ptk-master .table-modern td{
    height:49px!important;
    padding:7px 13px!important;
}

/* Surat Masuk master toolbar — follows Surat Keluar compact template */
.surat-masuk-master .sm-master-toolbar{
    display:grid;
    grid-template-columns:minmax(310px,1.15fr) minmax(560px,1.85fr);
    align-items:center;
    gap:10px 14px;
    margin-bottom:14px;
    padding:13px 15px;
    border:1px solid var(--ent-border);
    border-radius:17px;
    background:#fff;
    box-shadow:var(--ent-shadow);
}
body.suksma-enterprise-page .surat-masuk-master .sm-master-search,
body.suksma-enterprise-page .surat-masuk-master .sm-master-search:has(.search-modern){
    margin:0!important;padding:0!important;border:0!important;border-radius:0!important;
    background:transparent!important;box-shadow:none!important
}
.surat-masuk-master .sm-master-search .search-modern input{min-height:44px!important;border-radius:16px!important}
.surat-masuk-master .sm-master-filters{display:grid;grid-template-columns:repeat(3,minmax(150px,1fr));gap:10px}
.surat-masuk-master .sm-filter-control{position:relative;display:flex;align-items:center;min-width:0;margin:0!important}
.surat-masuk-master .sm-filter-control i{position:absolute;z-index:2;left:14px;color:#2f86be;pointer-events:none}
.surat-masuk-master .sm-filter-control select{
    width:100%;min-height:44px;padding:8px 32px 8px 40px;border:1px solid #cfe3f6;border-radius:14px;
    outline:0;color:#355977;background:#fbfdff;font-size:12px;font-weight:650;cursor:pointer
}
.surat-masuk-master .sm-filter-control select:focus{border-color:var(--ent-primary);box-shadow:0 0 0 4px rgba(56,189,248,.13)}
.surat-masuk-master .sm-master-actions{
    display:flex;grid-column:1/-1;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:7px;padding-top:2px
}
.surat-masuk-master .sm-toolbar-btn{
    display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:38px;padding:7px 12px;
    border:1px solid transparent;border-radius:12px;font-size:11px;font-weight:750;text-decoration:none!important;
    box-shadow:0 5px 13px rgba(15,23,42,.06);cursor:pointer;transition:.2s
}
.surat-masuk-master .sm-toolbar-btn:hover{box-shadow:0 10px 20px rgba(37,99,235,.13);transform:translateY(-2px) scale(1.02)}
.surat-masuk-master .sm-toolbar-outline{border-color:#cfe3f6;color:#35739f!important;background:#fff}
.surat-masuk-master .sm-toolbar-secondary{border-color:#bbf7d0;color:#158143!important;background:#f0fdf4}
.surat-masuk-master .sm-toolbar-primary{color:#fff!important;background:linear-gradient(135deg,#38bdf8,#2563eb)}
.surat-masuk-master .sm-filter-result{margin-right:auto;color:#6b8399;font-size:11px;font-weight:650}
.surat-masuk-master .sm-Nomor-Surat{color:#173f66!important;font-weight:800!important}
.surat-masuk-master .td-Asal_Surat{max-width:260px;color:#234c70!important;font-weight:700!important}
.surat-masuk-master .sm-Tanggal-Surat,.surat-masuk-master .sm-Tanggal-Diterima{color:#627f99!important;white-space:nowrap}
.surat-masuk-master .td-Perihal{
    display:-webkit-box;overflow:hidden;max-width:310px;-webkit-box-orient:vertical;-webkit-line-clamp:2
}

@media(max-width:1250px){
    .surat-masuk-master .sm-master-toolbar{grid-template-columns:1fr}
    .surat-masuk-master .sm-master-actions{grid-column:auto;justify-content:flex-start}
}
@media(max-width:768px){
    .surat-masuk-master .sm-master-filters{grid-template-columns:1fr}
    .surat-masuk-master .sm-master-actions{align-items:stretch;flex-direction:column}
    .surat-masuk-master .sm-toolbar-btn,.surat-masuk-master .sm-master-actions .dropdown{width:100%}
    .surat-masuk-master .sm-master-actions .dropdown .sm-toolbar-btn{width:100%}
}

/* Disposisi master toolbar */
.disposisi-master .dp-master-toolbar{display:grid;grid-template-columns:minmax(310px,1.15fr) minmax(560px,1.85fr);align-items:center;gap:10px 14px;margin-bottom:14px;padding:13px 15px;border:1px solid var(--ent-border);border-radius:17px;background:#fff;box-shadow:var(--ent-shadow)}
body.suksma-enterprise-page .disposisi-master .dp-master-search,body.suksma-enterprise-page .disposisi-master .dp-master-search:has(.search-modern){margin:0!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important}
.disposisi-master .dp-master-search .search-modern input{min-height:44px!important;border-radius:16px!important}
.disposisi-master .dp-master-filters{display:grid;grid-template-columns:repeat(3,minmax(150px,1fr));gap:10px}
.disposisi-master .dp-filter-control{position:relative;display:flex;align-items:center;min-width:0;margin:0!important}
.disposisi-master .dp-filter-control i{position:absolute;z-index:2;left:14px;color:#2f86be;pointer-events:none}
.disposisi-master .dp-filter-control select{width:100%;min-height:44px;padding:8px 32px 8px 40px;border:1px solid #cfe3f6;border-radius:14px;outline:0;color:#355977;background:#fbfdff;font-size:12px;font-weight:650}
.disposisi-master .dp-filter-control select:focus{border-color:var(--ent-primary);box-shadow:0 0 0 4px rgba(56,189,248,.13)}
.disposisi-master .dp-master-actions{display:flex;grid-column:1/-1;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:7px}
.disposisi-master .dp-toolbar-btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:38px;padding:7px 12px;border:1px solid transparent;border-radius:12px;font-size:11px;font-weight:750;text-decoration:none!important;box-shadow:0 5px 13px rgba(15,23,42,.06);transition:.2s}
.disposisi-master .dp-toolbar-btn:hover{transform:translateY(-2px) scale(1.02)}
.disposisi-master .dp-toolbar-outline{border-color:#cfe3f6;color:#35739f!important;background:#fff}
.disposisi-master .dp-toolbar-primary{color:#fff!important;background:linear-gradient(135deg,#38bdf8,#2563eb)}
.disposisi-master .dp-filter-result{margin-right:auto;color:#6b8399;font-size:11px;font-weight:650}
.disposisi-master .dp-Nomor{color:#173f66!important;font-weight:800!important;white-space:nowrap}.disposisi-master .dp-Tanggal{color:#627f99!important;white-space:nowrap}
.disposisi-master .td-perihal{display:-webkit-box;overflow:hidden;max-width:300px;-webkit-box-orient:vertical;-webkit-line-clamp:2}
.disposisi-master .td-tujuan,.disposisi-master .td-asal{max-width:240px;font-weight:650}
.disposisi-master .dp-Status .badge-success{color:#168143!important;background:#dcfce7!important}.disposisi-master .dp-Status .badge-warning{color:#a16207!important;background:#fef3c7!important}.disposisi-master .dp-Status .badge-secondary{color:#6941c6!important;background:#ede9fe!important}
body.suksma-enterprise-page .disposisi-master .btn-print{border-color:#d9ccff!important;color:#7549d8!important;background:#f5f1ff!important}
@media(max-width:1250px){.disposisi-master .dp-master-toolbar{grid-template-columns:1fr}.disposisi-master .dp-master-actions{grid-column:auto;justify-content:flex-start}}
@media(max-width:768px){.disposisi-master .dp-master-filters{grid-template-columns:1fr}.disposisi-master .dp-master-actions{align-items:stretch;flex-direction:column}.disposisi-master .dp-toolbar-btn,.disposisi-master .dp-master-actions .dropdown{width:100%}}

/* Compact master layout: maximize visible Surat Keluar records */
body.suksma-enterprise-page .surat-keluar-master .page-header-modern{
    min-height:132px;
    margin-bottom:14px!important;
    padding:21px 27px!important;
}

body.suksma-enterprise-page .surat-keluar-master .page-header-modern h3{
    gap:10px;
    font-size:27px!important;
}

body.suksma-enterprise-page .surat-keluar-master .page-header-modern h3 i{
    width:38px;
    height:38px;
    border-radius:12px;
    font-size:17px;
}

body.suksma-enterprise-page .surat-keluar-master .page-header-modern p{
    margin-top:5px!important;
    font-size:13px!important;
}

body.suksma-enterprise-page .surat-keluar-master .badge-total{
    min-width:145px;
    padding:12px 15px!important;
    border-radius:14px!important;
    font-size:13px!important;
}

.surat-keluar-master .sk-master-toolbar{
    gap:10px 14px;
    margin-bottom:14px;
    padding:13px 15px;
    border-radius:17px;
}

.surat-keluar-master .sk-master-search .search-modern input,
.surat-keluar-master .sk-filter-control select{
    min-height:44px!important;
}

.surat-keluar-master .sk-master-actions{
    gap:7px;
}

.surat-keluar-master .sk-toolbar-btn{
    min-height:38px;
    padding:7px 12px;
    font-size:11px;
}

.surat-keluar-master .sk-filter-result{
    font-size:11px;
}

body.suksma-enterprise-page .surat-keluar-master .table-modern th{
    height:50px!important;
    padding:10px 14px!important;
}

body.suksma-enterprise-page .surat-keluar-master .table-modern td{
    height:57px!important;
    padding:11px 14px!important;
}

body.suksma-enterprise-page .surat-keluar-master .action-btn{
    width:34px!important;
    height:34px!important;
}

@media(max-width:768px){
    body.suksma-enterprise-page .surat-keluar-master .page-header-modern{
        min-height:125px;
        padding:20px!important;
    }
    body.suksma-enterprise-page .surat-keluar-master .page-header-modern h3{
        font-size:24px!important;
    }
}

@media(max-width:768px){
    body.suksma-enterprise-page .surat-keluar-master .page-header-modern{
        min-height:165px;
        padding:24px!important;
    }
    body.suksma-enterprise-page .surat-keluar-master .page-header-modern h3{
        font-size:27px!important;
    }
    .surat-keluar-master .sk-master-toolbar{
        padding:14px;
        border-radius:17px;
    }
    .surat-keluar-master .sk-master-filters{
        grid-template-columns:1fr;
    }
    .surat-keluar-master .sk-master-actions{
        align-items:stretch;
        flex-direction:column;
    }
    .surat-keluar-master .sk-toolbar-btn,
    .surat-keluar-master .sk-master-actions .dropdown{
        width:100%;
    }
    .surat-keluar-master .sk-master-actions .dropdown .sk-toolbar-btn{
        width:100%;
    }
}

/* Final PTK desktop density override */
@media(min-width:769px){
    body.suksma-enterprise-page .ptk-master .page-header-modern{
        min-height:108px!important;
        margin-top:0!important;
        margin-bottom:10px!important;
        padding:16px 26px!important;
    }
    body.suksma-enterprise-page .ptk-master .page-header-modern h3{font-size:25px!important}
    body.suksma-enterprise-page .ptk-master .page-header-modern p{margin-top:2px!important;font-size:12px!important}
    body.suksma-enterprise-page .ptk-master .ptk-search-form,
    body.suksma-enterprise-page .ptk-master .ptk-search-form:has(.search-modern){
        margin:0!important;
        padding:0!important;
        background:transparent!important;
        border:0!important;
        border-radius:0!important;
        box-shadow:none!important;
    }
    body.suksma-enterprise-page .ptk-master .ptk-master-toolbar{
        gap:8px 12px!important;
        margin-bottom:10px!important;
        padding:10px 12px!important;
    }
    body.suksma-enterprise-page .ptk-master .table-modern th{height:43px!important;padding:7px 13px!important}
    body.suksma-enterprise-page .ptk-master .table-modern td{height:49px!important;padding:7px 13px!important}
}

/* Klasifikasi Nomor Surat — compact enterprise layout */
body.suksma-enterprise-page .classification-master .page-header-modern{
    min-height:108px!important;
    margin-top:0!important;
    margin-bottom:10px!important;
    padding:16px 26px!important;
}
body.suksma-enterprise-page .classification-master .page-header-modern h3{font-size:25px!important}
body.suksma-enterprise-page .classification-master .page-header-modern p{margin-top:2px!important;font-size:12px!important}
.classification-master .classification-toolbar{
    display:grid;
    grid-template-columns:minmax(360px,1fr) auto;
    align-items:center;
    gap:9px 14px;
    margin-bottom:10px;
    padding:10px 12px;
    background:#fff;
    border:1px solid #dcebff;
    border-radius:17px;
    box-shadow:0 8px 24px rgba(37,99,235,.07);
}
body.suksma-enterprise-page .classification-master .classification-search,
body.suksma-enterprise-page .classification-master .classification-search:has(.search-modern){
    margin:0!important;
    padding:0!important;
    background:transparent!important;
    border:0!important;
    border-radius:0!important;
    box-shadow:none!important;
}
.classification-master .classification-search .search-modern{margin:0!important}
.classification-master .classification-search input{min-height:42px!important;border-radius:13px!important}
.classification-master .classification-actions{display:flex;align-items:center;justify-content:flex-end;gap:7px}
.classification-master .classification-count{margin-right:4px;color:#64748b;font-size:11px;font-weight:700;white-space:nowrap}
.classification-master .classification-btn,
.classification-master .classification-add{
    min-height:38px;
    padding:7px 12px;
    color:#28618f;
    font-size:11px;
    font-weight:800;
    white-space:nowrap;
    background:#fff;
    border:1px solid #cfe3f6;
    border-radius:11px;
    box-shadow:0 4px 12px rgba(37,99,235,.05);
}
.classification-master .classification-add{color:#fff;background:linear-gradient(135deg,#38bdf8,#2563eb);border-color:transparent}
.classification-master .classification-btn:hover,
.classification-master .classification-add:hover{transform:translateY(-2px)}
.classification-master .dropdown-menu{padding:7px;border:1px solid #dcebff;border-radius:13px;box-shadow:0 14px 34px rgba(15,23,42,.13)}
.classification-master .dropdown-item{padding:9px 12px;font-size:12px;font-weight:700;border-radius:9px}
body.suksma-enterprise-page .classification-master .modern-card{border-radius:17px!important}
body.suksma-enterprise-page .classification-master .table-modern th{height:43px!important;padding:7px 13px!important}
body.suksma-enterprise-page .classification-master .table-modern td{height:48px!important;padding:7px 13px!important}
.classification-master .td-Jenis_Surat{font-weight:750;color:#17385c}
.classification-master .td-Kode_Surat span{display:inline-block;padding:5px 10px;color:#075e98;font-weight:850;background:#e8f6ff;border-radius:999px}
.classification-master .footer-modern{display:none!important}

@media(max-width:1100px){
    .classification-master .classification-toolbar{grid-template-columns:1fr}
    .classification-master .classification-actions{justify-content:flex-end}
    .classification-master .classification-count{margin-right:auto}
}
@media(max-width:768px){
    body.suksma-enterprise-page .classification-master .page-header-modern{min-height:140px!important;padding:20px!important}
    .classification-master .classification-actions{align-items:stretch;flex-direction:column}
    .classification-master .classification-count{margin:0 0 3px}
    .classification-master .classification-btn,.classification-master .classification-add,.classification-master .classification-actions .dropdown{width:100%}
}

/* =========================================================
   UNIVERSAL MOBILE MASTER PAGES
   ========================================================= */
.mobile-toolbar-toggle{display:none}

@media(max-width:768px){
    body.suksma-enterprise-page #page-content{
        padding:10px 8px 24px!important;
    }

    /* Hero ringkas: identitas halaman tetap terlihat tanpa mengambil satu layar */
    body.suksma-enterprise-page .surat-keluar-master .page-header-modern,
    body.suksma-enterprise-page .ptk-master .page-header-modern,
    body.suksma-enterprise-page .classification-master .page-header-modern{
        display:block!important;
        min-height:164px!important;
        margin:0 0 9px!important;
        padding:17px 18px!important;
        border-radius:18px!important;
    }
    body.suksma-enterprise-page .surat-keluar-master .page-header-modern>.d-flex{
        display:block!important;
    }
    body.suksma-enterprise-page .surat-keluar-master .page-header-modern h3{
        display:flex;
        align-items:center;
        margin:0!important;
        font-size:22px!important;
        line-height:1.2!important;
    }
    body.suksma-enterprise-page .surat-keluar-master .page-header-modern h3 i{
        width:38px!important;
        height:38px!important;
        flex:0 0 38px;
        margin-right:10px!important;
        font-size:16px!important;
    }
    body.suksma-enterprise-page .surat-keluar-master .page-header-modern p{
        margin:8px 0 0!important;
        padding-right:0;
        font-size:12px!important;
        line-height:1.45;
    }
    body.suksma-enterprise-page .surat-keluar-master .badge-total{
        position:absolute;
        right:16px;
        bottom:15px;
        width:auto!important;
        min-width:128px!important;
        margin:0!important;
        padding:9px 13px!important;
        font-size:11px!important;
        border-radius:12px!important;
    }

    /* Search selalu terlihat; filter dan tombol dibuka hanya saat dibutuhkan */
    .mobile-collapsible-toolbar{
        display:flex!important;
        align-items:stretch!important;
        flex-direction:column!important;
        gap:8px!important;
        margin-bottom:9px!important;
        padding:9px!important;
        border-radius:16px!important;
    }
    .mobile-collapsible-toolbar>form{
        width:100%!important;
        order:1;
    }
    .mobile-collapsible-toolbar .search-modern,
    .mobile-collapsible-toolbar .search-modern input{
        width:100%!important;
        min-width:0!important;
        margin:0!important;
    }
    .mobile-collapsible-toolbar .search-modern input{
        min-height:44px!important;
        padding-top:10px!important;
        padding-bottom:10px!important;
        padding-right:12px!important;
        font-size:13px!important;
        text-overflow:ellipsis;
    }
    .mobile-toolbar-toggle{
        display:flex;
        align-items:center;
        justify-content:space-between;
        width:100%;
        min-height:42px;
        order:2;
        padding:9px 13px;
        color:#17618f;
        font-size:12px;
        font-weight:850;
        background:#eef8ff;
        border:1px solid #cde7fb;
        border-radius:12px;
    }
    .mobile-toolbar-toggle .mobile-toggle-chevron{transition:transform .2s ease}
    .mobile-collapsible-toolbar.is-mobile-open .mobile-toggle-chevron{transform:rotate(180deg)}

    .mobile-collapsible-toolbar>.sk-master-filters,
    .mobile-collapsible-toolbar>.sm-master-filters,
    .mobile-collapsible-toolbar>.dp-master-filters,
    .mobile-collapsible-toolbar>.ptk-master-filters{
        width:100%!important;
        order:3;
        grid-template-columns:1fr!important;
    }
    .mobile-collapsible-toolbar>.sk-master-actions,
    .mobile-collapsible-toolbar>.sm-master-actions,
    .mobile-collapsible-toolbar>.dp-master-actions,
    .mobile-collapsible-toolbar>.ptk-master-actions,
    .mobile-collapsible-toolbar>.classification-actions{
        width:100%!important;
        order:4;
    }
    .mobile-collapsible-toolbar:not(.is-mobile-open)>.sk-master-filters,
    .mobile-collapsible-toolbar:not(.is-mobile-open)>.sm-master-filters,
    .mobile-collapsible-toolbar:not(.is-mobile-open)>.dp-master-filters,
    .mobile-collapsible-toolbar:not(.is-mobile-open)>.ptk-master-filters,
    .mobile-collapsible-toolbar:not(.is-mobile-open)>.sk-master-actions,
    .mobile-collapsible-toolbar:not(.is-mobile-open)>.sm-master-actions,
    .mobile-collapsible-toolbar:not(.is-mobile-open)>.dp-master-actions,
    .mobile-collapsible-toolbar:not(.is-mobile-open)>.ptk-master-actions,
    .mobile-collapsible-toolbar:not(.is-mobile-open)>.classification-actions{
        display:none!important;
    }

    /* Tabel mempertahankan lebar kolom dan digeser horizontal, bukan ditumpuk */
    body.suksma-enterprise-page .surat-keluar-master .modern-card{
        width:100%!important;
        min-width:0!important;
        overflow:hidden!important;
        border-radius:15px!important;
    }
    body.suksma-enterprise-page .surat-keluar-master .table-wrapper{
        display:block!important;
        width:100%!important;
        max-width:100%!important;
        overflow-x:auto!important;
        overflow-y:auto!important;
        overscroll-behavior-x:contain;
        -webkit-overflow-scrolling:touch;
    }
    body.suksma-enterprise-page .surat-keluar-master .table-modern{
        width:100%!important;
        table-layout:auto!important;
        border-collapse:separate!important;
        border-spacing:0!important;
    }
    body.suksma-enterprise-page .surat-keluar-master .table-modern th,
    body.suksma-enterprise-page .surat-keluar-master .table-modern td{
        min-width:90px;
        height:auto!important;
        padding:10px 12px!important;
        font-size:12px!important;
        line-height:1.35!important;
        white-space:nowrap!important;
        overflow:visible!important;
        word-break:normal!important;
    }
    body.suksma-enterprise-page .surat-keluar-master .table-modern th:first-child,
    body.suksma-enterprise-page .surat-keluar-master .table-modern td:first-child{
        min-width:48px!important;
    }
    body.suksma-enterprise-page .surat-keluar-master .td-Perihal,
    body.suksma-enterprise-page .surat-masuk-master .td-Asal_Surat,
    body.suksma-enterprise-page .disposisi-master .dp-Perihal,
    body.suksma-enterprise-page .classification-master .td-Jenis_Surat{
        min-width:230px!important;
        max-width:300px!important;
        white-space:normal!important;
        overflow-wrap:anywhere!important;
    }
    body.suksma-enterprise-page .surat-keluar-master .td-Nomor-Surat,
    body.suksma-enterprise-page .surat-keluar-master .td-Kepada,
    body.suksma-enterprise-page .surat-masuk-master .sm-Nomor-Surat,
    body.suksma-enterprise-page .ptk-master .td-Nama,
    body.suksma-enterprise-page .ptk-master .td-NIP{
        min-width:175px!important;
        max-width:none!important;
        white-space:nowrap!important;
    }
    body.suksma-enterprise-page .surat-keluar-master .td-btn{
        min-width:125px!important;
        white-space:nowrap!important;
    }

    .surat-keluar-master .table-modern{min-width:1120px!important}
    .surat-masuk-master .table-modern{min-width:1320px!important}
    .disposisi-master .table-modern{min-width:1280px!important}
    .ptk-master .table-modern{min-width:850px!important}
    .classification-master .table-modern{min-width:720px!important}
}
