:root{
    --hh-text:#111827;
    --hh-muted:rgba(43, 43, 43, 0.5);
    --hh-border:#e5e7eb;
    --hh-bg:#f8fafc;
    --hh-btn:#2b2f36;
    --hh-btn-hover:#1f232a;
}

html, body { height: 100%; }

body{
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    background: var(--hh-bg);
    color: var(--hh-text);
}

/* Common utilities */
.hh-muted{ color: var(--hh-muted); }
.hh-link{
    text-decoration: none;
    color: var(--hh-text);
}
.hh-link:hover{ text-decoration: underline; }

/* Login layout */
.hh-auth-shell{
    min-height: 100vh;
    display:flex;
    align-items:center;
    padding: 24px 0;
    background: #f3f3f5;
}

.hh-auth-left{ padding: 42px 0px; }

.hh-brand{
    text-align: center;
    align-items:center;
    margin-bottom: 28px;
}

.hh-auth-title{
    font-size:48px;
    font-weight:600;
    margin: 6px 0 8px;
}

.hh-auth-subtitle{
    color: var(--hh-muted);
    margin-bottom: 28px;
    font-size: 18px;
}

.form-control{
    border-radius:10px;
    padding: 12px 14px;
    border-color: var(--hh-border);
}

.form-control:focus{
    border-color: #9ca3af;
    box-shadow: 0 0 0 0.2rem rgba(17,24,39,0.08);
}

.hh-btn{
    background: var(--hh-btn);
    border-color: var(--hh-btn);
    border-radius: 10px;
    padding: 12px 16px;
    font-weight: 600;
    color:#fff;
}

.hh-btn:hover{
    background: var(--hh-btn-hover);
    border-color: var(--hh-btn-hover);
    color:#fff;
}

.hh-error-border{
    border-color:#dc3545 !important;
}

/* Right image */
.hh-auth-right{
    position:relative;
    height:100%;
    min-height: 520px;
}

.hh-auth-right img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}

.hh-auth-right::after{
    content:"";
    position:absolute;
    inset:0;
    pointer-events:none;
}


/*Dashboard*/
.dashboard-hero,
.stat-card {
    background: #39a9df;
}

.dashboard-hero {
    min-height: 250px;
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255,255,255,0.18);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.pb-7{
    padding-bottom: 7rem !important;
}

.stat-icon-custom{
    width: 56px;
    height: 56px;
    display:flex;
    align-items:center;
    justify-content:center;
    flex-shrink:0;
}

.stat-icon-custom svg{
    display:block;
}

.hh-footer-hit,
.hh-footer-hit-form{
    position: absolute;
    top: 8px;
    height: 48px;
    display: block;
    z-index: 2;
}

.hh-footer-hit-btn{
    width: 100%;
    height: 100%;
    border: 0;
    background: transparent;
    cursor: pointer;
    padding: 0;
}

.hh-hit-1{ left: 28px;  width: 70px; }
.hh-hit-2{ left: 145px; width: 70px; }
.hh-hit-3{ left: 259px; width: 70px; }
.hh-hit-4{ left: 375px; width: 70px; }
.hh-hit-5{ left: 487px; width: 70px; }

/* Responsive */
@media (max-width: 991.98px){
    .hh-auth-left{ padding: 28px 22px; }
    .hh-auth-title{ font-size:34px; }
    .hh-auth-right{ min-height: 280px; }
}


@media (max-width: 767.98px){

    .dashboard-hero .card-body {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }

    .dashboard-hero h1 {
        font-size: 2rem;
    }

    .dashboard-hero p {
        font-size: 1rem !important;
    }

    .hh-hit-1{ left: 5%;  width: 12%; }
    .hh-hit-2{ left: 26%; width: 12%; }
    .hh-hit-3{ left: 46%; width: 12%; }
    .hh-hit-4{ left: 66%; width: 12%; }
    .hh-hit-5{ left: 84%; width: 12%; }

    .stat-icon-custom{
        width: 48px;
        height: 48px;
    }

    .stat-icon-custom svg{
        width: 36px;
        height: 36px;
    }
}

/* Customer pages */
.hh-search-input{
    height:54px;
}

.hh-plus-btn,
.hh-action-btn{
    width:40px;
    height:40px;
    padding:0;
}

.hh-empty-box{
    min-height:120px;
}

.hh-tab-btn{
    border:1px solid var(--hh-border) !important;
    border-radius:12px !important;
    background:#fff !important;
    color:var(--hh-text) !important;
    white-space:nowrap;
    font-weight:600;
    padding:10px 16px !important;
}

.hh-tab-btn.active{
    background:var(--hh-btn) !important;
    border-color:var(--hh-btn) !important;
    color:#fff !important;
}

.hh-tab-close{
    font-size:16px;
    line-height:1;
    cursor:pointer;
}

.ui-autocomplete{
    z-index:9999 !important;
}

.select2-container {
    width: 100% !important;
}

.select2-container .select2-selection--single {
    height: 48px !important;
    border: 1px solid var(--hh-border) !important;
    border-radius: 0.375rem !important;
    background: #fff !important;
    display: flex !important;
    align-items: center !important;
    padding-left: 12px !important;
    box-shadow: none !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #212529 !important;
    line-height: 38px !important;
    padding-left: 0 !important;
    font-size: 14px !important;
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #6c757d !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 38px !important;
    right: 10px !important;
}

.select2-dropdown {
    border: 1px solid #ced4da !important;
    border-radius: 0.375rem !important;
    overflow: hidden;
}

.select2-search--dropdown .select2-search__field {
    border: 1px solid #ced4da !important;
    border-radius: 0.375rem !important;
    padding: 6px 10px !important;
}

.select2-container--default.select2-container--focus .select2-selection--single {
    border-color: #86b7fe !important;
    box-shadow: 0 0 0 .2rem rgba(13,110,253,.25) !important;
}

.order-form-page{
    background:#d9d9d9;
    min-height:100vh;
    font-family:Inter, Arial, sans-serif;
}

.order-form-wrap{
    width:100%;
    max-width:1180px;
    margin:0 auto;
    background:#fff;
}

.order-form-title{
    text-align:center;
    font-size:18px;
    font-weight:700;
    margin:0;
    padding:0 0 14px;
}

.order-tabs{
    display:grid;
    grid-template-columns:repeat(5, 1fr);
    gap:18px;
    padding:0 28px 12px;
    background:#f4f4f4;
}

.order-tab{
    height:31px;
    border:0;
    border-radius:4px;
    background:#fff;
    color:#000;
    font-size:12px;
    font-weight:600;
}

.order-tab.active{
    background:#32A8D4;
    color:#fff;
}

.order-sheet-area{
    border-top:3px solid #0EA5E9;
    padding-left:28px;
    min-height:700px;
    overflow-x:auto;
}

.order-items-wrapper,
.category-items-wrapper{
    display:flex;
    align-items:stretch;
}

.category-items-wrapper.d-none{
    display:none !important;
}

.selected-item-column,
.empty-item-column{
    width:288px;
    min-width:288px;
    background:#fff;
    border-right:1px dashed #d0d0d0;
    min-height:700px;
}

.selected-item-header,
.empty-item-header{
    height:34px;
    border-bottom:1px solid #E9E8E8;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:0 8px;
}

.selected-item-title{
    font-size:13px;
    font-weight:700;
}

.selected-item-title span{
    font-size:12px;
    margin-left:4px;
}

.selected-item-icons{
    display:flex;
    gap:12px;
    font-size:18px;
}

.empty-garment-select{
    width:220px;
    height:28px;
    border:0;
    background:#fff;
    font-size:13px;
    color:#777;
}

.bag-icon{
    font-size:18px;
}

.add-item-plus{
    width:22px;
    height:22px;
    border:2px solid #cfcfcf;
    border-radius:50%;
    background:#fff;
    color:#cfcfcf;
    font-size:20px;
    line-height:16px;
    display:flex;
    align-items:center;
    justify-content:center;
    margin:260px auto 0;
}

.selected-row{
    padding:7px 8px;
    border-bottom:1px solid #E9E8E8;
    background:#fff;
}

.selected-row label{
    display:block;
    font-size:12px;
    font-weight:600;
    margin-bottom:4px;
    color:#000;
}

.row-title-with-icons{
    display:flex;
    align-items:center;
    justify-content:space-between;
    font-size:12px;
}

.row-icons{
    display:flex;
    align-items:center;
    gap:8px;
}

.row-icons button{
    border:0;
    background:transparent;
    font-size:12px;
    padding:0;
}

.round-plus{
    width:14px;
    height:14px;
    border:1px solid #000 !important;
    border-radius:50%;
    font-size:12px !important;
    line-height:10px;
}

.figma-input,
.figma-select{
    height:20px !important;
    padding:1px 6px !important;
    border:1px solid #999 !important;
    border-radius:3px !important;
    font-size:10px !important;
    background:#fff !important;
    box-shadow:none !important;
}

.figma-comment{
    height:26px !important;
    min-height:26px !important;
    border:0 !important;
    border-radius:4px !important;
    background:#E9E8E8 !important;
    font-size:9px !important;
    padding:6px 8px !important;
    margin-top:5px;
    box-shadow:none !important;
}

.piece-name{
    padding:7px 8px;
    border-bottom:1px solid #E9E8E8;
    font-size:12px;
    font-weight:700;
    background:#fff;
}

.qty-modal-content{
    border:0;
    border-radius:12px;
}

.qty-input{
    height:38px;
    border-radius:8px;
}

.order-back-btn,
.order-next-btn{
    height:34px;
    border:0;
    border-radius:17px;
    padding:0 18px;
    font-size:13px;
}

.order-back-btn{
    background:#f4f4f4;
    color:#000;
}

.order-next-btn{
    background:#24282C;
    color:#fff;
}

.fabric-modal-dialog{
    max-width:350px;
}

.fabric-modal-content{
    border:0;
    border-radius:12px;
    overflow:hidden;
}

.fabric-popup-header{
    height:56px;
    border-bottom:1px solid #d9d9d9;
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:0 12px;
}

.fabric-popup-header h5{
    font-size:20px;
    font-weight:700;
    margin:0;
}

.fabric-close{
    width:22px;
    height:22px;
    border:1px solid #999;
    border-radius:3px;
    background:#fff;
    font-size:20px;
    line-height:16px;
}

.fabric-popup-body{
    padding:10px 12px 12px;
}

.fabric-popup-label{
    font-size:12px;
    margin-bottom:4px;
}

.fabric-popup-search{
    height:18px !important;
    border:0 !important;
    border-radius:5px !important;
    background:#e9e8e8 !important;
    font-size:11px !important;
    padding:2px 8px !important;
}

.fabric-preview-box{
    width:36px;
    height:36px;
    background:#c9c9c9;
    border-radius:5px;
    margin:12px 0;
}

.fabric-specific-box{
    border:1px solid #cfcfcf;
    border-radius:5px;
    padding:8px;
}

.fabric-specific-box h6{
    font-size:14px;
    font-weight:700;
    margin-bottom:8px;
}

.fabric-check-row{
    display:flex;
    gap:10px;
    align-items:center;
    font-size:13px;
    margin-bottom:8px;
}

.copy-prev-fabric-btn{
    height:30px;
    width:100%;
    border:1px solid #22a7e8;
    border-radius:6px;
    background:#fff;
    color:#22a7e8;
    font-weight:700;
    margin-top:6px;
}

.apply-fabric-btn{
    height:30px;
    width:100%;
    border:1px solid #ff7a1a;
    border-radius:6px;
    background:#ffc49d;
    color:#ff6a00;
    font-weight:700;
    margin-top:6px;
}

.previous-fabric-popup{
    width:670px;
    background:#fff;
}

#fabricModal .previous-fabric-popup{
    width:670px;
}

#fabricModal .modal-dialog:has(.previous-fabric-popup){
    max-width:670px;
}

.previous-order-list{
    padding:12px 16px;
    background:#f3f3f3;
}

.previous-order-card{
    position:relative;
    background:#fff;
    border-radius:10px;
    padding:14px 12px;
    margin-bottom:10px;
    box-shadow:0 3px 12px rgba(0,0,0,0.12);
    cursor:pointer;
}

.previous-order-card.selected{
    outline:2px solid #22a7e8;
}

.previous-order-top{
    display:flex;
    justify-content:space-between;
    font-size:14px;
}

.previous-order-top strong{
    font-size:22px;
}

.previous-order-details{
    color:#777;
    font-size:13px;
    margin-top:12px;
}

.previous-expand{
    position:absolute;
    right:12px;
    bottom:8px;
    color:#777;
}
.previous-order-summary{
    display:flex;
    gap:8px;
    flex-wrap:wrap;
    color:#777;
    font-size:13px;
    margin-top:12px;
}

.previous-filter{
    color:#22a7e8;
}

.previous-expand-btn{
    position:absolute;
    right:12px;
    bottom:8px;
    border:0;
    background:transparent;
    color:#777;
    font-size:18px;
}

.previous-order-items{
    display:grid;
    grid-template-columns:repeat(3, 1fr);
    gap:6px 12px;
    margin-top:14px;
}

.previous-fabric-item{
    display:flex;
    align-items:center;
    gap:6px;
    border:1px solid #d0d0d0;
    border-radius:4px;
    background:#fff;
    padding:4px;
    text-align:left;
    font-size:10px;
}

.previous-fabric-item.selected{
    border-color:#22a7e8;
    background:#eef9ff;
}

.previous-fabric-thumb{
    width:22px;
    height:22px;
    border-radius:2px;
    background:#4d5c60;
    flex-shrink:0;
}

.previous-fabric-item small{
    display:block;
    font-size:9px;
    color:#333;
}
.row-icons button{
    cursor:pointer;
}

.row-icons button:hover{
    color:#32A8D4;
}

.measurement-modal-dialog{
    max-width:345px;
}

.measurement-modal-content{
    border:0;
    border-radius:12px;
    overflow:hidden;
}

.measurement-popup-header{
    height:34px;
    border-bottom:1px solid #d9d9d9;
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:0 12px;
}

.measurement-popup-header h5{
    font-size:20px;
    font-weight:700;
    margin:0;
}

.measurement-close{
    width:20px;
    height:20px;
    border:1px solid #999;
    border-radius:3px;
    background:#fff;
    font-size:18px;
    line-height:14px;
}

.measurement-popup-body{
    padding:8px 12px;
}

.measurement-required-box{
    border:1px solid #ff4b4b;
    background:#eeeeee;
    border-radius:6px;
    height:48px;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#ff5b6b;
    font-size:13px;
    font-weight:600;
    margin-bottom:8px;
}

.measurement-specific-box{
    border:1px solid #cfcfcf;
    border-radius:5px;
    padding:8px;
}

.measurement-specific-box h6{
    font-size:14px;
    font-weight:700;
    margin-bottom:8px;
}

.measurement-check-row{
    display:flex;
    gap:10px;
    align-items:center;
    font-size:13px;
    margin-bottom:8px;
}

.add-new-measurement-btn,
.use-previous-measurement-btn{
    height:30px;
    width:100%;
    border:1px solid #22a7e8;
    border-radius:6px;
    background:#fff;
    color:#22a7e8;
    font-weight:700;
    margin-top:6px;
}

.apply-measurement-btn{
    height:30px;
    width:100%;
    border:1px solid #ff7a1a;
    border-radius:6px;
    background:#ffc49d;
    color:#ff6a00;
    font-weight:700;
    margin-top:6px;
}

.measurement-form-body{
    padding:16px 28px 12px;
}

.measurement-form-row{
    display:grid;
    grid-template-columns:95px 1fr;
    gap:10px;
    align-items:center;
    margin-bottom:10px;
}

.measurement-form-row label{
    font-size:12px;
    color:#111;
}

.measurement-value-input{
    height:26px !important;
    border:1px solid #d5d5d5 !important;
    border-radius:6px !important;
    font-size:11px !important;
}

.measurement-form-actions{
    display:flex;
    gap:8px;
    margin-top:16px;
}

.measurement-cancel-btn{
    flex:1;
    height:30px;
    border:2px solid #ff3030;
    border-radius:5px;
    background:#ffd7d7;
    color:#ff2020;
    font-weight:700;
    font-size:12px;
}

.measurement-save-btn{
    flex:1;
    height:30px;
    border:0;
    border-radius:5px;
    background:#ff7618;
    color:#fff;
    font-weight:700;
    font-size:12px;
}

.measurement-modal-dialog{
    max-width:760px;
}

.previous-measurement-popup{
    width:760px;
    background:#fff;
    border-radius:10px;
    overflow:hidden;
}

.previous-measurement-header{
    height:48px;
}

.previous-measurement-header h5{
    font-size:18px;
    font-weight:700;
}

.previous-measurement-scroll{
    display:flex;
    overflow-x:auto;
    background:#fff;
    padding:0;
    max-height:460px;
}

.previous-measurement-card{
    min-width:190px;
    max-width:190px;
    border-right:1px solid #cfcfcf;
    cursor:pointer;
    background:#fff;
}

.previous-measurement-card.selected{
    outline:2px solid #19a8e8;
    outline-offset:-2px;
}

.previous-measurement-card-header{
    height:28px;
    display:grid;
    grid-template-columns:1fr auto auto;
    align-items:center;
    gap:5px;
    padding:0 6px;
    border-bottom:1px solid #d8d8d8;
    font-size:10px;
}

.previous-measurement-edit-btn{
    border:0;
    background:transparent;
    font-size:10px;
    color:#555;
    text-decoration:underline;
    padding:0;
}

.previous-measurement-check{
    width:14px;
    height:14px;
    border:1px solid #777;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:10px;
    color:#555;
}

.previous-measurement-card.selected .previous-measurement-check{
    background:#4caf50;
    border-color:#4caf50;
    color:#fff;
}

.previous-measurement-item-row{
    display:grid;
    grid-template-columns:1fr 1fr;
    font-size:9px;
    font-weight:700;
    border-bottom:1px solid #d8d8d8;
}

.previous-measurement-item-row span{
    padding:3px 5px;
    border-right:1px solid #d8d8d8;
    white-space:nowrap;
}

.previous-measurement-fabric-row{
    display:flex;
    justify-content:space-between;
    padding:4px 6px;
    font-size:9px;
    border-bottom:1px solid #d8d8d8;
}

.previous-measurement-table{
    width:100%;
    font-size:10px;
    border-collapse:collapse;
}

.previous-measurement-table th{
    text-align:left;
    font-weight:700;
    padding:3px 6px;
    border-bottom:1px solid #d8d8d8;
}

.previous-measurement-table td{
    padding:2px 6px;
    border-bottom:1px solid #d8d8d8;
}

.previous-measurement-table td:last-child{
    text-align:right;
    width:55px;
}

.previous-measurement-footer{
    padding:10px 0 14px;
    display:flex;
    justify-content:center;
}

.previous-measurement-footer .apply-measurement-btn{
    width:260px;
    height:30px;
    border:0;
    border-radius:6px;
    background:#ff7618;
    color:#fff;
    font-weight:700;
}

.measurement-update-btn{
    flex:1;
    height:30px;
    border:0;
    border-radius:5px;
    background:#ff7618;
    color:#fff;
    font-size:12px;
    font-weight:700;
}

.previous-measurement-comment{
    padding:4px 6px;
    font-size:10px;
    color:#555;
    background:#f2f2f2;
    border-top:1px solid #d8d8d8;
}

.additional-info-choice{
    display:inline-flex;
    align-items:center;
    gap:4px;
    width:32%;
    font-size:11px;
    margin:3px 0;
}

.additional-info-choice input{
    width:11px;
    height:11px;
}

.additional-info-comment{
    margin:6px 8px 8px;
    width:calc(100% - 16px);
}

.garment-option-title-row{
    font-weight:600;
}

.additional-info-option-row{
    padding-bottom:8px;
}

.additional-info-choice-block{
    margin-top:8px;
}

.additional-info-choice-title{
    display:block;
    font-size:12px;
    font-weight:700;
    margin-bottom:5px;
}

.additional-info-field{
    margin-bottom:8px;
}

.additional-info-label{
    display:block;
    font-size:11px;
    font-weight:600;
    margin-bottom:3px;
}

.additional-info-choice-list{
    display:flex;
    flex-wrap:wrap;
    gap:6px 10px;
}

.additional-info-radio{
    width:46%;
    font-size:11px;
    display:flex;
    align-items:center;
    gap:4px;
}

.additional-info-radio input{
    width:11px;
    height:11px;
}

/* Previous Style Popup */
#fabricModal .modal-dialog:has(.previous-style-modal){
    width:min(96vw, 900px);
    max-width:min(96vw, 900px);
    margin:1.5rem auto;
}

#fabricModal .modal-content:has(.previous-style-modal){
    border:0;
    border-radius:18px;
    overflow:hidden;
    background:transparent;
}

.previous-style-modal{
    width:100%;
    background:#f8f8f8;
    border-radius:18px;
    overflow:hidden;
}

.previous-style-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:18px 28px;
    border-bottom:1px solid #ddd;
    background:#fff;
}

.previous-style-header h4{
    margin:0;
    font-size:20px;
    font-weight:700;
    color:#111827;
}

.previous-style-header button{
    border:0;
    background:transparent;
    font-size:26px;
    line-height:1;
    color:#777;
}

.previous-style-body{
    padding:16px 20px;
    max-height:65vh;
    overflow:auto;
}

.previous-style-card{
    position:relative;
    background:#fff;
    border-radius:16px;
    box-shadow:0 3px 14px rgba(0,0,0,.12);
    padding:18px 22px;
    margin-bottom:16px;
}

.previous-style-card-top{
    display:flex;
    justify-content:space-between;
    gap:12px;
}

.previous-style-order-no{
    font-size:22px;
    font-weight:700;
    color:#111827;
}

.previous-style-date{
    font-size:14px;
    color:#111827;
    white-space:nowrap;
}

.previous-style-summary{
    margin-top:14px;
    padding-right:34px;
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    color:#6b7280;
    font-size:14px;
}

.summary-all{
    color:#22a7e8;
    font-weight:500;
}

.previous-style-expand-btn{
    position:absolute;
    right:22px;
    bottom:18px;
    border:0;
    background:transparent;
    width:28px;
    height:28px;
    padding:0;
    display:flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
}

.expand-icon{
    width:18px;
    height:18px;
    position:relative;
    display:inline-block;
}

.expand-icon span{
    position:absolute;
    width:7px;
    height:7px;
}

.expand-icon span:nth-child(1){
    top:0;
    left:0;
    border-top:2px solid #777;
    border-left:2px solid #777;
}

.expand-icon span:nth-child(2){
    top:0;
    right:0;
    border-top:2px solid #777;
    border-right:2px solid #777;
}

.expand-icon span:nth-child(3){
    bottom:0;
    left:0;
    border-bottom:2px solid #777;
    border-left:2px solid #777;
}

.expand-icon span:nth-child(4){
    bottom:0;
    right:0;
    border-bottom:2px solid #777;
    border-right:2px solid #777;
}

.previous-style-expanded{
    margin-top:18px;
}

.previous-style-item{
    width:100%;
    display:grid;
    grid-template-columns:120px 1fr;
    gap:14px;
    border:1px solid #8d8d8d;
    border-radius:8px;
    padding:10px;
    margin-bottom:12px;
    background:#fff;
    cursor:pointer;
    text-align:left;
}

.previous-style-item.selected{
    background:#dff4ff;
    border-color:#22a7e8;
}

.previous-style-thumb{
    width:56px;
    height:56px;
    border-radius:4px;
    background:#263238;
}

.previous-style-item-name{
    margin-top:5px;
    font-size:13px;
    font-weight:700;
    color:#111827;
}

.previous-style-item-options{
    display:flex;
    flex-direction:column;
    gap:7px;
    font-size:13px;
    color:#222;
}

.previous-style-option-row{
    display:block;
    padding-bottom:6px;
    border-bottom:1px solid rgba(0,0,0,.08);
    line-height:1.35;
}

.previous-style-option-row:last-child{
    border-bottom:0;
}

.previous-style-option-main{
    display:flex;
    gap:6px;
}

.previous-style-option-main strong{
    font-weight:700;
    min-width:145px;
}

.previous-style-option-comment{
    margin-left:151px;
    color:#777;
    font-size:11px;
}

.previous-style-option-extra{
    margin-left:151px;
    display:flex;
    flex-wrap:wrap;
    gap:4px 10px;
    color:#333;
    font-size:12px;
}

.previous-style-option-extra span:not(:last-child)::after{
    content:",";
}

.previous-style-extra-option{
    background:#f8fbff;
    padding:5px 6px;
    border-radius:4px;
}

.previous-style-minimize-btn{
    border:0;
    background:transparent;
    text-decoration:underline;
    color:#666;
    font-size:15px;
}

.previous-style-footer{
    padding:14px 0 18px;
    display:flex;
    justify-content:center;
    background:#f8f8f8;
}

.apply-previous-style-btn{
    width:min(90%, 380px);
    height:42px;
    border:0;
    border-radius:8px;
    background:#ff7a14;
    color:#fff;
    font-size:16px;
    font-weight:700;
}

@media (max-width:768px){
    #fabricModal .modal-dialog:has(.previous-style-modal){
        width:98vw;
        max-width:98vw;
        margin:.5rem auto;
    }

    .previous-style-header{
        padding:14px 16px;
    }

    .previous-style-header h4{
        font-size:18px;
    }

    .previous-style-body{
        padding:12px;
        max-height:75vh;
    }

    .previous-style-card{
        padding:14px;
        border-radius:14px;
    }

    .previous-style-card-top{
        flex-direction:column;
        align-items:flex-start;
        gap:4px;
    }

    .previous-style-order-no{
        font-size:20px;
    }

    .previous-style-date,
    .previous-style-summary{
        font-size:13px;
    }

    .previous-style-item{
        grid-template-columns:70px 1fr;
        gap:10px;
    }

    .previous-style-thumb{
        width:56px;
        height:56px;
    }

    .previous-style-option-main{
        display:block;
    }

    .previous-style-option-main strong{
        min-width:0;
        display:block;
    }

    .previous-style-option-comment,
    .previous-style-option-extra{
        margin-left:0;
    }

    .apply-previous-style-btn{
        height:38px;
        font-size:14px;
    }
}

.order-save-wrapper {
    display: flex;
    justify-content: center;
    margin: 30px 0;
}

.order-save-btn {
    min-width: 220px;
    height: 48px;
    border: none;
    border-radius: 8px;
    background: #ff7a00;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

.order-save-btn:hover {
    opacity: 0.95;
}

.checkout-page {
    min-height: 100vh;
    background: #f3f3f5;
    padding: 30px 14px;
    font-family: Inter, Arial, sans-serif;
}

.checkout-wrap {
    max-width: 920px;
    margin: 0 auto;
}

.checkout-header {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 22px;
}

.checkout-back {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #fff;
    color: #111;
    text-decoration: none;
    font-size: 32px;
    line-height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.checkout-header h2 {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
}

.checkout-header p {
    margin: 4px 0 0;
    color: #777;
}

.checkout-customer-card,
.checkout-item-card,
.checkout-total-card {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 3px 14px rgba(0,0,0,.08);
}

.checkout-customer-card {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 18px 22px;
    margin-bottom: 18px;
}

.checkout-customer-card span,
.checkout-row span,
.checkout-total-card span {
    display: block;
    color: #777;
    font-size: 13px;
}

.checkout-customer-card strong,
.checkout-row strong,
.checkout-total-card strong {
    font-size: 15px;
    color: #111827;
}

.checkout-item-card {
    padding: 18px 22px;
    margin-bottom: 16px;
}

.checkout-item-top {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #eee;
    padding-bottom: 12px;
}

.checkout-item-top h4 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
}

.checkout-item-top p {
    margin: 4px 0 0;
    color: #777;
    font-size: 13px;
}

.checkout-piece {
    padding: 14px 0;
    border-bottom: 1px solid #f0f0f0;
}

.checkout-piece:last-child {
    border-bottom: 0;
}

.checkout-piece-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
}

.checkout-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
}

.checkout-section-title {
    font-size: 13px;
    font-weight: 700;
    color: #22a7e8;
    margin: 12px 0 6px;
}

.checkout-option-line {
    padding: 7px 0;
    border-bottom: 1px dashed #e5e5e5;
}

.checkout-option-line strong {
    display: inline-block;
    min-width: 160px;
    font-size: 13px;
}

.checkout-option-line span {
    font-size: 13px;
}

.checkout-option-line small {
    display: block;
    margin-left: 164px;
    color: #777;
    font-size: 12px;
}

.checkout-additional-info {
    margin-left: 164px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
}

.checkout-additional-info em {
    font-style: normal;
    font-size: 12px;
    color: #333;
}

.checkout-final-area {
    margin: 24px auto 0;
}

.checkout-blue-total-box {
    background: #36a9d6;
    color: #fff;
    border-radius: 8px;
    padding: 16px 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.checkout-blue-total-box span {
    display: block;
    font-size: 12px;
}

.checkout-blue-total-box strong {
    display: block;
    font-size: 28px;
    line-height: 1.1;
}

.checkout-blue-meta {
    text-align: right;
    font-size: 12px;
}

.checkout-action-row {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 12px;
}

.checkout-edit-btn {
    width: 140px;
    height: 36px;
    border: 2px solid #ff2b2b;
    border-radius: 4px;
    background: #ffd1d1;
    color: #ff0000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.checkout-confirm-btn {
    width: 150px;
    height: 36px;
    border: 0;
    border-radius: 4px;
    background: #009c64;
    color: #fff;
    font-weight: 600;
}

@media (max-width: 768px) {
    .checkout-customer-card {
        grid-template-columns: 1fr;
    }

    .checkout-item-top,
    .checkout-total-card {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .checkout-btn {
        width: 100%;
    }

    .checkout-option-line strong {
        display: block;
        min-width: 0;
    }

    .checkout-option-line small,
    .checkout-additional-info {
        margin-left: 0;
    }
}

/* Customer consultation search - exact icon alignment */
.customer-consultation-page {
    min-height: 100vh;
    background: #F3F3F5;
    color: #111827;
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

.consultation-header {
    height: 56px;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
}

.consultation-header .container-xl {
    position: relative;
}

.consultation-logo {
    height: 48px;
    width: auto;
    display: block;
    margin: 0 auto;
}

.consultation-logo-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.consultation-add-btn {
    position: absolute;
    right: 20px;
    top: 50%;
    width: 36px;
    height: 36px;
    transform: translateY(-50%);
    border-radius: 50%;
    background: #20242A;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border: 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, .18);
}

.consultation-add-btn:hover {
    background: #111827;
    color: #fff;
}

.consultation-add-btn svg,
.consultation-circle-btn svg {
    display: block;
    flex-shrink: 0;
}

.consultation-main {
    padding-top: 24px;
    padding-bottom: 48px;
}

.consultation-page-title {
    width: min(100%, 847px);
    margin: 0 auto 22px;
    font-size: 18px;
    font-weight: 700;
}

.consultation-panel {
    width: min(100%, 847px);
    margin-left: auto;
    margin-right: auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 6px rgba(15, 23, 42, .08);
}

.consultation-search-panel {
    padding: 42px 28px;
    text-align: center;
    margin-bottom: 20px;
}

.consultation-title {
    font-size: 30px;
    line-height: 1.15;
    font-weight: 700;
    margin: 0 0 10px;
    color: #111827;
}

.consultation-subtitle {
    font-size: 14px;
    color: #4b5563;
    margin: 0;
}

.consultation-search-form {
    margin-top: 24px;
}

.consultation-search-wrap {
    position: relative;
    width: min(100%, 432px);
    margin: 0 auto;
}

.consultation-search-input {
    height: 36px !important;
    border: 0 !important;
    border-radius: 6px !important;
    background: #F3F3F5 !important;
    padding: 8px 42px 8px 14px !important;
    font-size: 14px !important;
    box-shadow: none !important;
}

.consultation-search-input:focus {
    background: #F3F3F5 !important;
    box-shadow: 0 0 0 2px rgba(17, 24, 39, .08) !important;
}

.consultation-search-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: #6b7280;
    padding: 0;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.consultation-section-panel {
    padding: 22px;
    margin-bottom: 20px;
}

.consultation-section-title {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
}

.consultation-result-count {
    color: #6b7280;
    font-size: 13px;
}

.consultation-empty-text {
    color: #4b5563;
    font-size: 14px;
    padding: 12px 0 0;
}

.consultation-empty-result {
    min-height: 76px;
    border: 1px solid #d9dee7;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4b5563;
    font-size: 14px;
    text-align: center;
    padding: 18px;
}

.consultation-sort-icon {
    width: 16px;
    color: #8b8b8b;
    display: flex;
    flex-direction: column;
    line-height: 10px;
    font-size: 13px;
}

#customerTabs {
    justify-content: center;
}

.consultation-tab-btn {
    height: 42px;
    border: 0;
    border-radius: 10px;
    background: #32A8D4;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 16px;
}

.consultation-tab-btn.active,
.consultation-tab-btn:hover {
    background: #32A8D4;
    color: #fff;
}

.consultation-tab-close {
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}

.consultation-result-card {
    border: 1px solid #d9dee7;
    border-radius: 12px;
    background: #fff;
    padding: 15px;
}

.consultation-result-name {
    color: #111827;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
}

.consultation-result-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    color: #667085;
    font-size: 14px;
}

.consultation-circle-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    flex: 0 0 38px;
    padding: 0;
}

.consultation-open-btn {
    border: 1px solid #d9dee7;
    background: #fff;
    color: #111827;
}

.consultation-open-btn:hover {
    color: #111827;
    background: #fff;
}

.consultation-add-row-btn {
    border: 0;
    background: #20242A;
    color: #fff;
}

.consultation-add-row-btn:hover {
    color: #fff;
    background: #111827;
}

@media (max-width: 767.98px) {
    .consultation-add-btn {
        right: 12px;
    }

    .consultation-search-panel,
    .consultation-section-panel,
    .consultation-page-title {
        width: 100%;
    }

    .consultation-title {
        font-size: 24px;
    }

    .consultation-result-meta {
        gap: 6px;
        flex-direction: column;
    }
}

.consultation-row-icon {
    border: 0;
    background: transparent;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.consultation-row-icon img {
    width: 18px;
    height: 18px;
}

.consultation-add-customer-icon{
    display:flex;
    align-items:center;
    justify-content:center;
    text-decoration:none;
}

.consultation-add-customer-icon img{
    width:49px;
    height:52px;
    display:block;
}