﻿* {
    padding: 0px;
    margin: 0px;
    box-sizing: border-box;
    text-decoration: none;
    font-family: Segoe UI, Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --col-inp-re-only: #ffdbdb;
    --bg-but-grad-red: linear-gradient(135deg, #df8585 0%, #c54c4c 44%, #931717 100%);
    --bg-but-grad-gre: linear-gradient(135deg, #28e636 0%, #18ad23 44%, #15891d 100%);
    --bg-but-grad-blu: linear-gradient(135deg, #9ea2da 0%, #6056c5 44%, #3940b4 100%);
    --bg-but-grad-lub: linear-gradient(135deg, #73b9ff 0%, #218fff 44%, #0a6fd6 100%);
    --div-container-bg: #f8f7ff;
    --div-contain-com-bg: #5b5d68;
    --div-card-bg: #efefef;
    --div-card-shadow: 0 6px 18px rgba(0,0,0,0.08);
    --div-card-border: 1px solid rgba(0,0,0,0.08);
    --but-sub-opacity: 0.95;
    --but-sub-bradius: 8px;
    --box-shadow-red: 0 0 0 4px rgb(176, 43, 43, 0.15 );
    --box-shadow-blu: 0 0 0 4px rgba(43,108,176,0.15);
    --box-border-red: #b02b2b;
    --box-border-blu: #2b6cb0;
}

@font-face {
    font-family: 'MaterialDesignIcons';
    src: url('/fonts/MaterialDesignIcons.ttf') format('truetype');
}



#overlay {
    position: fixed;
    z-index: 999999999;
    top: 0px;
    left: 0px;
    background-color: #222222;
    width: 100%;
    height: 100%;
    opacity: 0.80;
    display: none;
    justify-content: center;
    align-items: center;
}

.div-container {
    direction: rtl;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    background-color: var(--div-container-bg);
}

.div-cont-comment {
    background-color: var(--div-contain-com-bg);
}

.div-padding-50 {
    padding: 50px 0px;
}

.div-padding-130 {
    padding: 130px 0px 40px 0px;
}

.start-section {
    scroll-margin-top: 100px;
}

.div-card {
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    background: var(--div-card-bg);
    box-shadow: var(--div-card-shadow);
    border: var(--div-card-border);
    height: fit-content;
    padding: 22px 22px 0px 22px;
    margin: 20px 20px 20px 20px;
}

.div-card-wid-full {
    width: 100%;
}

.div-card-wid-400 {
    width: 400px;
}

.div-card-wid-360 {
    width: 360px;
}

.div-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.pa-title {
    color: #0f7530;
    font-size: 20px;
    font-weight: 700;
    margin: 0px;
    text-align: center;
    width: 100%;
}

    .pa-title::after {
        content: "";
        display: block;
        margin: 8px auto 0;
        width: 60%;
        height: 1px;
        background-image: linear-gradient(to right, transparent, #2b6cb0, transparent);
    }

.img-login {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    object-fit: cover;
    border: 2px solid rgba(11,18,32,0.04);
    background: linear-gradient(135deg,#fff,#f1f5f9);
    padding: 6px;
}

/************************************/
.flex-col-full {
    display: flex;
    flex-direction: column;
    width: 100%;
    row-gap: 6px;
    margin-bottom: 16px;
}

.grid-col-2-full {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 60px;
}

@media (max-width: 700px) {
    .grid-col-2-full {
        grid-template-columns: 1fr;
    }
}

.grid-center {
    align-items: center;
}

.flex-row-full {
    display: flex;
    flex-direction: row;
    width: 100%;
    column-gap: 30px;
    margin-bottom: 16px;
}

.flex-center {
    justify-content: center;
}
/************************************/
.pa-sub-title {
    display: inline-flex;
    column-gap: 6px;
    color: #201364;
    font-size: 16px;
    font-weight: 600;
    margin: 0px;
}

.input-origin {
    width: 100%;
    font-size: 18px;
    padding: 8px;
    border-radius: 10px;
    border: 1px solid rgba(0,0,0,0.5);
    transition: box-shadow .14s,transform .12s;
}

    .input-origin:focus {
        outline: none;
        box-shadow: var(--box-shadow-blu);
        border-color: var(--box-border-blu);
        background-color: var(--div-container-bg);
    }

.input-bg-img {
    padding-right: 36px;
    background-repeat: no-repeat;
    background-position: calc(100% - 12px ) center;
    background-size: 18px;
}

.input-readonly {
    background-color: var(--col-inp-re-only);
}

    .input-readonly:focus {
        outline: none;
        box-shadow: var(--box-shadow-red);
        border-color: var(--box-border-red);
        background-color: var(--col-inp-re-only);
    }

.icon-user {
    background-image: url("/img/user.png");
}

.icon-pass {
    background-image: url("/img/password.png");
}

.icon-id-number {
    background-image: url("/img/id_number.png");
}

.icon-mobile {
    background-image: url("/img/mobile.png");
}

.pa-error {
    color: #d93025;
    text-align: right;
    font-size: 14px;
    font-weight: 600;
    margin: 0px;
}

.pa-remember {
    display: block;
    text-align: center;
    color: #2b6cb0;
    text-decoration: none;
    font-size: 14px;
    margin: 6px;
}

    .pa-remember:hover {
        text-decoration: underline;
    }

.pa_logout {
    font-size: 16px;
    text-align: center;
    color: #6c757d !important;
}

.but-origin {
    width: 100%;
    height: 44px;
    border-radius: var(--but-sub-bradius);
    border: 0;
    color: #fff;
    cursor: pointer;
    font-size: 18px;
    font-weight: 700;
}

    .but-origin:hover {
        opacity: var(--but-sub-opacity);
    }

.but-wid-150 {
    width: 150px;
}

@media (max-width: 700px) {
    .but-wid-150 {
        width: 100%;
    }
}

.but-red {
    background: var(--bg-but-grad-red);
}

.but-green {
    background: var(--bg-but-grad-gre);
}

.but-blue {
    background: var(--bg-but-grad-blu);
}

.but-lubna {
    background: var(--bg-but-grad-lub);
}

.star_red {
    color: red;
}
/*************************************************/
.dropzone {
    display: block;
    border: 2px dashed #b8c4d6;
    border-radius: 16px;
    background: linear-gradient(180deg,#ffffff,#f7fbff);
    padding: 18px;
    cursor: pointer;
    position: relative;
    transition: .2s ease;
}

    .dropzone input[type="file"] {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        opacity: 0;
        cursor: pointer;
    }

.dz-body {
    position: relative;
    min-height: 170px;
    display: grid;
    gap: 10px;
    place-items: center;
    text-align: center;
}

.dz-icon {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: #e9f2ff;
    color: #2563eb;
    font-weight: 700;
}

.dz-title {
    font-weight: 700;
    color: #0f172a;
}

.dz-sub {
    font-size: 13px;
    color: #64748b;
    margin-top: 4px;
}

.dz-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.dz-chip {
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #334155;
}

.dz-preview {
    display: none;
    width: 100%;
    max-height: 220px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.dropzone:hover {
    border-color: #7aa7ff;
    box-shadow: 0 10px 28px rgba(37,99,235,.10);
    transform: translateY(-1px);
}

.dropzone.is-dragover {
    border-color: #2563eb;
    background: linear-gradient(180deg,#ffffff,#eef6ff);
}

.dropzone.has-file .dz-icon {
    background: #dcfce7;
    color: #16a34a;
}

.dropzone.has-file #dzHint {
    display: none;
}

.dropzone.has-file .dz-preview {
    display: block;
}
/****************************************************/

.company-departments {
    margin: 50px 30px;
    padding: 20px;
    border-radius: 18px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
    background: radial-gradient(900px 320px at 10% 0%, rgba(59, 130, 246, 0.10), transparent 60%), radial-gradient(700px 280px at 90% 10%, rgba(45, 212, 191, 0.10), transparent 55%), linear-gradient(180deg, rgba(248, 250, 252, 0.98), rgba(241, 245, 249, 0.96));
    color: #0f172a;
}

    .company-departments h1 {
        margin-bottom: 12px;
        font-size: 20px;
        font-weight: 900;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        color: #0f172a;
    }

        .company-departments h1::before {
            content: "";
            width: 10px;
            height: 10px;
            border-radius: 999px;
            background: linear-gradient(135deg, #3b82f6, #14b8a6);
            box-shadow: 0 0 0 6px rgba(59, 130, 246, 0.15);
        }

.dept-head {
    margin-bottom: 14px;
}

.dept-sub {
    color: #475569;
    font-size: 13px;
    line-height: 1.7;
}

.dept-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
}

.dept-card {
    --dept-color: #64748b;
    grid-column: span 6;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border-radius: 18px;
    text-decoration: none;
    color: #0f172a;
    position: relative;
    overflow: hidden;
    min-height: 112px;
    border: 1px solid rgba(148, 163, 184, 0.45);
    background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.82));
    box-shadow: 0 10px 26px rgba(2,6,23,.06);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

    .dept-card::before {
        content: "";
        position: absolute;
        inset: -2px;
        pointer-events: none;
        opacity: 0;
        transition: opacity 0.18s ease;
        background: radial-gradient(360px 170px at 12% 18%, rgba(0,0,0,.06), transparent 60%), radial-gradient(340px 170px at 88% 82%, rgba(0,0,0,.05), transparent 60%);
    }

    .dept-card:hover {
        transform: translateY(-3px);
        border-color: rgba(59, 130, 246, 0.35);
        background: linear-gradient(180deg, #ffffff, #eef2ff);
        box-shadow: 0 18px 38px rgba(15, 23, 42, 0.16);
    }

        .dept-card:hover::before {
            opacity: 1;
        }

.dept-purchases {
    --dept-color: #f97316;
}

.dept-tenders {
    --dept-color: #22c55e;
}

.dept-barcode {
    --dept-color: #0ea5e9;
}

.dept-icon {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border: 1px solid rgba(148, 163, 184, 0.6);
    background: linear-gradient(135deg, #ffffff, #e5e7eb);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
    position: relative;
}

    .dept-icon::after {
        content: "";
        position: absolute;
        inset: -1px;
        border-radius: 18px;
        background: radial-gradient(22px 22px at 30% 30%, rgba(255, 255, 255, 0.9), transparent 60%);
        pointer-events: none;
    }

    .dept-icon i {
        font-size: 26px;
        color: var(--dept-color);
        line-height: 1;
    }

.dept-body {
    min-width: 0;
    flex: 1 1 auto;
}

.dept-title {
    font-weight: 600;
    font-size: 20px;
    margin-bottom: 8px;
    color: #0f172a;
}

.dept-desc {
    color: #6b7280;
    font-size: 13px;
    line-height: 1.7;
}

.dept-arrow {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border: 1px solid rgba(148, 163, 184, 0.7);
    background: rgba(15, 23, 42, 0.02);
    color: var(--dept-color);
    opacity: .95;
    transition: transform 0.18s ease, opacity 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.dept-card:hover .dept-arrow {
    transform: translateX(-3px);
    background: rgba(15, 23, 42, 0.04);
    border-color: rgba(59, 130, 246, 0.45);
    opacity: 1;
}

.dept-arrow i {
    font-size: 20px;
    line-height: 1;
}

@media (max-width: 900px) {
    .dept-card {
        grid-column: span 12;
    }
}


/* ==================== page depart ==================== */

.page-depart-wrapper {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
}

.page-depart-content {
    flex: 1 1 auto;
    padding: 20px;
    width: 100%;
}

.pad-0 {
    padding: 0px;
}

@media (max-width: 700px) {
    .page-depart-wrapper {
        flex-direction: column;
        /*padding: 12px;*/
        /*gap: 12px;*/
    }
}

/* ==================== side bar ==================== */
.side-bar {
    width: 230px;
    flex: 0 0 auto;
    background: radial-gradient(260px 160px at 0% 0%, rgba(125,211,252,.35), transparent 60%), radial-gradient(260px 160px at 100% 0%, rgba(167,139,250,.35), transparent 60%), linear-gradient(180deg, #f8fafc, #ffffff);
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 30px rgba(15,23,42,.08);
    padding: 14px 14px 16px;
    height: fit-content;
    position: sticky;
    top: 100px;
    transition: width .2s ease, padding .2s ease;
    overflow: hidden;
}

    .side-bar.sidebar-collapsed {
        width: 72px;
        padding-inline: 10px;
    }

        .side-bar.sidebar-collapsed .sidebar-header {
            justify-content: flex-end;
        }

            .side-bar.sidebar-collapsed .sidebar-header h3 {
                display: none;
            }

        .side-bar.sidebar-collapsed .sidebar-btn span {
            display: none;
        }

        .side-bar.sidebar-collapsed .sidebar-btn {
            justify-content: center;
            padding-inline: 10px;
        }

        .side-bar.sidebar-collapsed .sidebar-btn-add,
        .side-bar.sidebar-collapsed .sidebar-btn-search {
            text-align: center;
        }

        .side-bar.sidebar-collapsed .sidebar-divider {
            margin-inline: 6px;
        }

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(148,163,184,.55);
}

    .sidebar-header h3 {
        font-size: 18px;
        font-weight: 600;
        color: #0f172a;
    }

.sidebar-toggle {
    border: none;
    background: rgba(15,23,42,.05);
    color: #0f172a;
    width: 28px;
    height: 28px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: background .18s ease, transform .18s ease;
}

    .sidebar-toggle i {
        font-size: 18px;
    }

    .sidebar-toggle:hover {
        background: rgba(15,23,42,.12);
        transform: translateX(-1px);
    }

.sidebar-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sidebar-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 12px;
    text-decoration: none;
    color: #0f172a;
    font-size: 16px;
    font-weight: 600;
    transition: background .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease, border-color .18s ease;
    border: 1px solid transparent;
    background: rgba(15,23,42,.02);
    position: relative;
    cursor: pointer;
}

    .sidebar-btn i {
        font-size: 18px;
        flex: 0 0 auto;
    }

    .sidebar-btn span {
        flex: 1;
        white-space: nowrap;
    }

    .sidebar-btn:not(.sidebar-btn-add):not(.sidebar-btn-search):hover {
        background: rgba(15,23,42,.08);
        border-color: rgba(15,23,42,.12);
        transform: translateY(-1px);
    }

.sidebar-btn-add {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(22,163,74,.35);
    margin-bottom: 6px;
}

    .sidebar-btn-add i {
        color: #ffffff;
    }

    .sidebar-btn-add:hover {
        background: linear-gradient(135deg, #16a34a, #15803d);
        box-shadow: 0 6px 20px rgba(22,163,74,.45);
        transform: translateY(-2px);
    }

.sidebar-btn-search {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(129,140,248,.35);
    margin-top: 2px;
}

    .sidebar-btn-search i {
        color: #ffffff;
    }

    .sidebar-btn-search:hover {
        background: linear-gradient(135deg, #7c3aed, #6d28d9);
        box-shadow: 0 6px 20px rgba(129,140,248,.45);
        transform: translateY(-2px);
    }

.sidebar-divider {
    height: 1px;
    background: rgba(148,163,184,.65);
    margin: 8px 0;
}

.sidebar-btn.sidebar-btn-select {
    background: #e8f0ff;
    color: #0f172a;
    border-color: rgba(37, 99, 235, 0.55);
    box-shadow: 0 3px 11px rgba(15, 23, 42, 0.11);
}

    .sidebar-btn.sidebar-btn-select i {
        color: #1d4ed8;
    }

    .sidebar-btn.sidebar-btn-select::before {
        content: "";
        position: absolute;
        inset-inline-start: 0;
        top: 7px;
        bottom: 7px;
        width: 3px;
        border-radius: 999px;
        background: #2563eb;
    }

    .sidebar-btn.sidebar-btn-select::after {
        content: "";
        position: absolute;
        left: 6px;
        right: 6px;
        top: 3px;
        height: 40%;
        border-radius: inherit;
        background: radial-gradient(circle at top, rgba(255, 255, 255, 0.55), transparent 65%);
        opacity: 0.55;
        pointer-events: none;
    }

    .sidebar-btn.sidebar-btn-select:hover {
        background: #dde7ff;
        box-shadow: 0 5px 15px rgba(15, 23, 42, 0.15);
        transform: translateY(-2px);
    }

@media (max-width: 700px) {
    .side-bar {
        width: 100%;
        position: static;
        padding: 10px;
    }

        .side-bar.sidebar-collapsed {
            width: 100%;
        }

    .sidebar-header {
        display: none;
    }

    .sidebar-content {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 4px;
    }

    .sidebar-btn span {
        display: none;
    }

    .sidebar-divider {
        display: none;
    }
}




/* ==================== tables ==================== */
.tab-cen-pa-80 {
    align-content: center;
    padding: 0px 80px;
}

.table-wrapper {
    width: 100%;
    overflow: auto;
}

.ta-sub {
    width: 100%;
    border-radius: 12px;
    border: 1px solid rgb(157 169 183 );
    border-spacing: 0;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(15, 23, 42, .06);
}

    .ta-sub thead {
        background: linear-gradient(135deg, #eef6ff 0%, #dbeafe 60%, #cfe6ff 100%);
    }

        .ta-sub thead th {
            padding: 14px 12px;
            font-size: 16px;
            font-weight: 600;
            color: #0f172a;
            text-align: center;
            border-bottom: 1px solid #dbe3f0;
            white-space: nowrap;
        }

/* ====== Quote meta header row (الجديد) ====== */

.ta-purchase-items thead tr:nth-child(1) {
    background: linear-gradient(135deg, #111338 0%, #2a3fba 58%, #60a5fa 100%);
    color: #ffffff;
}

    .ta-purchase-items thead tr:nth-child(1) th {
        padding: 8px 12px;
    }

        .ta-purchase-items thead tr:nth-child(1) th:nth-child(1) .pa-sub-title {
            color: rgba(255,255,255,.92);
            font-weight: 700;
        }

        .ta-purchase-items thead tr:nth-child(1) th:nth-child(1) .quote-no {
            color: #ffffff;
            font-weight: 700;
        }

.ta-purchase-quote-grid {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
    gap: 60px;
}

.ta-purchase-quote-item {
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.ta-purchase-quote-supplier {
    width: 100%;
}

.ta-input-purchase-supplier {
    height: 34px !important;
}

.ta-purchase-items thead tr:nth-child(1) th:nth-child(2) {
    text-align: left;
}

    .ta-purchase-items thead tr:nth-child(1) th:nth-child(2) .ta-but-delete {
        padding: 0 12px;
        font-size: 14px;
        line-height: 32px;
    }

/* ====== Body ====== */
.ta-sub tbody tr {
    transition: transform .12s ease, background .12s ease, box-shadow .12s ease;
}

    .ta-sub tbody tr:nth-child(odd) {
        background: #fff;
    }

    .ta-sub tbody tr:nth-child(even) {
        background: rgba(248, 250, 252, .92);
    }

    .ta-sub tbody tr:hover {
        background: rgba(239, 246, 255, .95);
        box-shadow: inset 0 0 0 9999px rgba(37, 99, 235, .04);
    }

    .ta-sub tbody tr:has(input:focus),
    .ta-sub tbody tr:has(select:focus) {
        background: rgba(219, 234, 254, .75);
        box-shadow: inset 0 0 0 9999px rgba(37, 99, 235, .06), 0 10px 24px rgba(2, 6, 23, .06);
        transform: translateY(-1px);
    }

.ta-sub tbody td {
    padding: 12px 12px;
    font-size: 15px;
    color: #111827;
    text-align: center;
    vertical-align: baseline;
    border-bottom: 1px solid #e5e7eb;
}

/* ====== Footer ====== */

.ta-sub tfoot tr {
    background: linear-gradient(180deg, #f8fbff 0%, #eef5ff 100%);
}

    .ta-sub tfoot tr td {
        padding: 12px;
        font-size: 16px;
        font-weight: 600;
        color: #0f172a;
        text-align: center;
        border-top: 1px solid rgba(226, 232, 240, .95);
        /*background: linear-gradient(180deg, rgba(248, 250, 252, .95), rgba(255, 255, 255, .90));*/
    }

        .ta-sub tfoot tr td.ta-total-cell {
            color: #1d4ed8;
            font-weight: 700;
            letter-spacing: 1px;
        }

.ta-purchase-items tfoot tr:nth-child(2) {
    background: linear-gradient(135deg, #f0f3f7 0%, #dde3ef 50%, #cbd5e1 100%);
}
/* ====== Inputs ====== */
.ta-input-origin {
    width: 100%;
    text-align: center;
    font-size: 16px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid rgba(203, 213, 225, .95);
    background: rgba(255, 255, 255, .95);
    color: #0f172a;
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease, transform .12s ease, background .15s ease;
}

    .ta-input-origin::placeholder {
        color: #94a3b8;
    }

    .ta-input-origin:hover {
        border-color: rgba(37, 99, 235, .35);
    }

    .ta-input-origin:focus {
        border-color: rgba(37, 99, 235, .70);
        box-shadow: 0 0 0 5px rgba(37, 99, 235, .16);
        background: #ffffff;
    }

.ta-input-readonly {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

    .ta-input-readonly:focus {
        background: #f1f5f9;
    }

.ta-input-currency {
    border: 1px solid rgba(37, 99, 235, .35);
    background: linear-gradient(180deg, rgba(239, 246, 255, .95), rgba(219, 234, 254, .75));
    color: #1d4ed8;
    font-weight: 700;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

    .ta-input-currency:hover {
        border-color: rgba(37, 99, 235, .55);
    }

    .ta-input-currency:focus {
        border-color: rgba(37, 99, 235, .75);
        box-shadow: 0 0 0 5px rgba(37, 99, 235, .16);
        background: rgba(239, 246, 255, .98);
    }

.ta-span-origin {
    text-align: center;
    font-size: 16px;
    color: #0f172a;
}
/* ====== Buttons ====== */
.ta-but-delete {
    height: 36px;
    padding: 0 14px;
    font-size: 13px;
    font-weight: 900;
    border-radius: 999px;
    border: 1px solid rgba(254, 202, 202, .95);
    color: #b91c1c;
    background: linear-gradient(180deg, rgba(255, 255, 255, .95), rgba(254, 226, 226, .95));
    cursor: pointer;
    transition: transform .12s ease, box-shadow .12s ease, background .12s ease, border-color .12s ease;
    white-space: nowrap;
}

    .ta-but-delete:hover {
        background: linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(254, 202, 202, .98));
        border-color: rgba(248, 113, 113, .55);
        box-shadow: 0 14px 26px rgba(220, 38, 38, .16);
        transform: translateY(-1px);
    }

    .ta-but-delete:active {
        transform: translateY(0);
        box-shadow: none;
    }

    .ta-but-delete:focus {
        outline: none;
        box-shadow: 0 0 0 5px rgba(220, 38, 38, .16);
    }

.add-quote-btn {
    border-color: #bfdbfe;
    color: #1d4ed8;
    background: linear-gradient(180deg, #fff, #dbeafe);
}

/* ====== Column widths ====== */
.ta-purchase-items th:nth-child(1),
.ta-purchase-items td:nth-child(1) {
    width: 60px;
    font-weight: 700;
    color: #334155;
}

.ta-purchase-items th:nth-child(4),
.ta-purchase-items td:nth-child(4) {
    width: 120px;
}

.ta-purchase-items th:nth-child(5),
.ta-purchase-items td:nth-child(5) {
    width: 120px;
}

.ta-purchase-items th:nth-child(6),
.ta-purchase-items td:nth-child(6) {
    width: 160px;
}

.ta-purchase-items th:nth-child(7),
.ta-purchase-items td:nth-child(7) {
    width: 160px;
}

/* ==================== attach card files ==================== */

.attach-card {
    margin-top: 20px;
    padding: 20px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    background: linear-gradient(180deg, #ffffff, #f7fbff);
    box-shadow: 0 14px 34px rgba(2,6,23,.08), inset 0 1px 0 rgba(255,255,255,.65);
}

.attach-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.attach-hint {
    font-size: 13px;
    color: #64748b;
    font-weight: 700;
}

.attach-input-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

.attach-dropzone {
    display: block;
    position: relative;
    border: 2px dashed rgba(37,99,235,.30);
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff, #f7fbff);
    padding: 18px;
    cursor: pointer;
    user-select: none;
    margin-bottom: 12px;
    transition: .2s ease;
    text-align: center;
}

.attach-dropzone-title {
    font-size: 16px;
    color: #0f172a;
    font-weight: 700;
}

.attach-dropzone-sub {
    font-size: 13px;
    color: #64748b;
    font-weight: 600;
    margin-top: 4px;
}

.attach-dropzone:hover {
    border-color: #7aa7ff;
    box-shadow: 0 10px 28px rgba(37,99,235,.10);
    transform: translateY(-1px);
}

.attach-dropzone.is-over {
    border-color: rgba(37,99,235,.72);
    background: linear-gradient(180deg, rgba(219,234,254,.75), rgba(226,232,240,.70));
    box-shadow: 0 0 0 5px rgba(37,99,235,.14), 0 18px 38px rgba(2,6,23,.12);
    transform: translateY(-1px);
}

.attach-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: stretch;
}

.attach-item {
    width: 260px;
    max-width: 100%;
    padding: 10px 10px;
    border-radius: 14px;
    border: 1px solid #adc2df;
    cursor: pointer;
    background: linear-gradient(180deg, #ffffff, #f7fbff);
    box-shadow: 0 10px 24px rgba(2,6,23,.08), inset 0 1px 0 rgba(255,255,255,.70);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    transition: .2s ease;
}

    .attach-item:hover {
        border-color: #7aa7ff;
        box-shadow: 0 12px 28px rgba(37,99,235,.10);
        transform: translateY(-1px);
    }

.attach-meta {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.attach-name {
    font-weight: 600;
    color: #0f172a;
    font-size: 13.5px;
    max-width: 170px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.attach-size {
    font-size: 12.5px;
    color: #475569;
    font-weight: 600;
}

.attach-remove {
    height: 34px;
    padding: 0 12px;
    font-size: 13px;
    font-weight: 900;
    border-radius: 999px;
    border: 1px solid rgba(254,202,202,.95);
    color: #b91c1c;
    background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(254,226,226,.95));
    cursor: pointer;
    transition: .2s ease;
    white-space: nowrap;
    flex: 0 0 auto;
}

    .attach-remove:hover {
        background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(254,202,202,.98));
        border-color: rgba(248,113,113,.55);
        box-shadow: 0 14px 26px rgba(220,38,38,.16);
        transform: translateY(-1px);
    }


/* ==================== comment ==================== */

.cmt-card {
    background: #fff;
    border: 1px solid rgba(15,23,42,.10);
    border-radius: 18px;
    overflow: hidden;
    margin-bottom: 20px;
}

.cmt-header {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 14px;
    padding: 8px 12px;
    border-radius: 18px;
    border: 1px solid rgba(15,23,42,.12);
    background: linear-gradient(180deg,#FFFFFF 0%, #F9FBFF 100%);
    box-shadow: inset -3px 0 0 rgba(29,78,216,.18), 0 10px 24px rgba(15,23,42,.08);
}

.cmt-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    border: 1px solid rgba(15,23,42,.12);
    box-shadow: 0 6px 14px rgba(15,23,42,.10);
}

.cmt-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.cmt-job {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 600;
    color: #1D4ED8;
    line-height: 1;
    background: #EEF2FF;
    border: 1px solid rgba(29,78,216,.18);
}

.cmt-dot {
    font-size: 16px;
    font-weight: 900;
    color: #98A2B3;
}

.cmt-name {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 6px 12px;
    border-radius: 999px;
    color: #730072;
    font-size: 17px;
    font-weight: 600;
    line-height: 1;
    background: linear-gradient(180deg, #fef6ff 0%, #f9ecff 100%);
    border: 1px solid rgb(130 0 122 / 28%);
}

.cmt-dt {
    justify-self: end;
    padding: 6px 10px;
    border-radius: 999px;
    color: rgba(15,23,42,.72);
    font-size: 14px;
    font-weight: 600;
    background: rgba(15,23,42,.03);
    border: 1px solid rgba(15,23,42,.08);
    line-height: 1;
}

@media (max-width:700px) {
    .cmt-header {
        grid-template-columns: 1fr;
    }

    .cmt-dt {
        justify-self: start;
        margin-top: 6px;
    }
}

/* ==================== status ==================== */

.status-ok {
    background: #e8f7ee;
    color: #157347;
    border: 1px solid #b7ebc6;
    border-radius: 999px;
    font-weight: 600;
}

.status-bad {
    background: #fdeaea;
    color: #b02a37;
    border: 1px solid #f5c2c7;
    border-radius: 999px;
    font-weight: 600;
}

.status-unknown {
    background: #f1f3f5;
    color: #495057;
    border: 1px solid #dee2e6;
    border-radius: 999px;
    font-weight: 600;
}

.input-ok {
    background: #e8f7ee;
    color: #157347;
    border: 1px solid #157347;
    font-weight: 600;
}

.input-bad {
    background: #fdeaea;
    color: #b02a37;
    border: 1px solid #b02a37;
    font-weight: 600;
}


.pur-state-11 {
    color: #e60017;
}

.notify-state-not-read {
    color: #e60017;
}

/* ==================== search ==================== */

.search-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
    justify-content: space-between;
    padding: 10px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
    box-sizing: border-box;
}

.search-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.input-search {
    text-align: center;
    width: 250px;
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    font-size: 16px;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

    .input-search:focus {
        border-color: #0b5ed7;
        box-shadow: 0 0 0 3px rgba(11,94,215,0.15);
    }

    .input-search::placeholder {
        color: #9ca3af;
    }

.btn-search {
    padding: 10px 16px;
    border-radius: 6px;
    border: 1px solid #0b5ed7;
    background: #0b5ed7;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.05s ease;
}

    .btn-search:hover {
        background: #0a4fbd;
    }

    .btn-search:active {
        transform: translateY(1px);
    }

    .btn-search:focus {
        outline: none;
        box-shadow: 0 0 0 3px rgba(11,94,215,0.25);
    }

.input-page-size {
    width: 70px;
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    font-size: 16px;
}

    .input-page-size:focus {
        border-color: #0b5ed7;
        box-shadow: 0 0 0 3px rgba(11,94,215,0.15);
    }


/* ==================== pager ==================== */

.pagination {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    list-style: none;
    border-radius: 6px;
    justify-content: center;
}

.page-item {
    display: inline-block;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    background: #fff;
    color: #374151;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    margin: 0px 3px;
}

.page-item.disabled .page-link {
    opacity: 0.5;
    pointer-events: none;
    cursor: not-allowed;
}

.page-item.active .page-link {
    background-color: #0b5ed7;
    color: #fff;
    border-color: #0b5ed7;
}
