﻿
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600&display=swap');

.la-wrap {
    font-family: 'DM Sans',sans-serif;
    padding: 1.5rem 1rem;
    max-width: 1400px;
    margin: 0 auto
}

.la-page-header {
    margin-bottom: 1.5rem
}

    .la-page-header h3 {
        font-size: 20px;
        font-weight: 600;
        color: #1a1a1a;
        margin: 0 0 3px
    }

    .la-page-header p {
        font-size: 13px;
        color: #888;
        margin: 0
    }

.la-breadcrumb {
    font-size: 12px;
    color: #aaa;
    margin-bottom: .5rem
}

    .la-breadcrumb span {
        color: #378ADD
    }

.la-card {
    background: #fff;
    border: 1px solid #ebebeb;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,.04);
    margin-bottom: 1.5rem
}

.la-card-head {
    padding: 1.1rem 1.5rem;
    border-bottom: 1px solid #f2f2f2;
    display: flex;
    align-items: center;
    gap: 10px
}

.la-card-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: #EBF4FF;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0
}

    .la-card-icon svg {
        width: 17px;
        height: 17px;
        stroke: #185FA5;
        fill: none;
        stroke-width: 2;
        stroke-linecap: round;
        stroke-linejoin: round
    }

.la-card-title {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 1px
}

.la-card-sub {
    font-size: 11px;
    color: #aaa;
    margin: 0
}

.la-card-body {
    padding: 1.25rem 1.5rem
}

/* ===== FORM ===== */
.la-form-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 1rem
}

@@media(max-width:900px) {
    .la-form-grid {
        grid-template-columns: repeat(2,1fr)
    }
}

@@media(max-width:550px) {
    .la-form-grid {
        grid-template-columns: 1fr
    }
}

.la-form-group {
    margin: 0
}

.la-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #777;
    margin-bottom: 5px;
    letter-spacing: .05em;
    text-transform: uppercase
}

.la-input {
    display: block;
    width: 100%;
    box-sizing: border-box;
    height: 40px;
    padding: 0 12px;
    font-size: 14px;
    font-family: 'DM Sans',sans-serif;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fafafa;
    color: #1a1a1a;
    transition: border-color .15s,box-shadow .15s,background .15s
}

    .la-input:focus {
        outline: none;
        border-color: #378ADD;
        box-shadow: 0 0 0 3px rgba(55,138,221,.1);
        background: #fff
    }

    .la-input::placeholder {
        color: #bbb
    }

.la-select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-color: #fafafa;
    padding-right: 36px;
    cursor: pointer
}

.la-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap
}

.la-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 22px;
    height: 40px;
    background: #185FA5;
    color: #fff !important;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-family: 'DM Sans',sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: background .15s;
    text-decoration: none
}

    .la-btn-primary:hover {
        background: #0C447C;
        text-decoration: none;
        color: #fff !important
    }

    .la-btn-primary svg {
        width: 15px;
        height: 15px;
        stroke: #fff;
        fill: none;
        stroke-width: 2.5;
        stroke-linecap: round;
        stroke-linejoin: round
    }

.la-btn-success {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 22px;
    height: 40px;
    background: #2D7D46;
    color: #fff !important;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-family: 'DM Sans',sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: background .15s;
    text-decoration: none
}

    .la-btn-success:hover {
        background: #1e5c32;
        text-decoration: none;
        color: #fff !important
    }

    .la-btn-success svg {
        width: 15px;
        height: 15px;
        stroke: #fff;
        fill: none;
        stroke-width: 2.5;
        stroke-linecap: round;
        stroke-linejoin: round
    }

.la-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 18px;
    height: 40px;
    background: #fff;
    border: 1px solid #185FA5;
    color: #185FA5 !important;
    border-radius: 8px;
    font-size: 13px;
    font-family: 'DM Sans',sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: all .15s;
    text-decoration: none
}

    .la-btn-outline:hover {
        background: #EBF4FF;
        text-decoration: none;
        color: #185FA5 !important
    }

    .la-btn-outline svg {
        width: 15px;
        height: 15px;
        stroke: #185FA5;
        fill: none;
        stroke-width: 2;
        stroke-linecap: round;
        stroke-linejoin: round
    }

.la-btn-cancel {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 40px;
    padding: 0 18px;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    color: #666 !important;
    border-radius: 8px;
    font-size: 13px;
    font-family: 'DM Sans',sans-serif;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: background .15s
}

    .la-btn-cancel:hover {
        background: #ebebeb;
        text-decoration: none
    }

    .la-btn-cancel svg {
        width: 14px;
        height: 14px;
        stroke: #999;
        fill: none;
        stroke-width: 2;
        stroke-linecap: round;
        stroke-linejoin: round
    }

#btnUpdate {
    display: none
}

/* ===== ALERT ===== */
.la-alert {
    padding: .75rem 1rem;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 8px
}

.la-alert-success {
    background: #EAF7EE;
    color: #2D7D46;
    border: 1px solid #b7e4c7
}

.la-alert-error {
    background: #FFF0F0;
    color: #C0392B;
    border: 1px solid #FFCDD2
}

.la-alert svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0
}

#divAlert {
    display: none
}

/* ===== EXCEL UPLOAD ===== */
.la-upload-zone {
    border: 2px dashed #d0e4f7;
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    background: #f7fbff;
    transition: border-color .2s,background .2s;
    cursor: pointer
}

    .la-upload-zone:hover, .la-upload-zone.drag-over {
        border-color: #378ADD;
        background: #eef6ff
    }

    .la-upload-zone svg {
        width: 36px;
        height: 36px;
        stroke: #378ADD;
        fill: none;
        stroke-width: 1.5;
        stroke-linecap: round;
        stroke-linejoin: round;
        margin-bottom: .5rem
    }

.la-upload-title {
    font-size: 14px;
    font-weight: 600;
    color: #185FA5;
    margin: 0 0 3px
}

.la-upload-sub {
    font-size: 11px;
    color: #aaa;
    margin: 0
}

.la-file-chosen {
    margin-top: .5rem;
    font-size: 12px;
    color: #555;
    font-weight: 500
}

/* ===== TABLE ===== */
.la-scroll-hint {
    display: none;
    font-size: 11px;
    color: #bbb;
    padding: 6px 1.5rem;
    text-align: right
}

@@media(max-width:768px) {
    .la-scroll-hint {
        display: block
    }
}

.la-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch
}

.la-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    min-width: 1200px
}

    .la-table thead tr {
        background: #f8f8f8
    }

    .la-table thead th {
        padding: 11px 14px;
        text-align: left;
        font-size: 10.5px;
        font-weight: 600;
        color: #999;
        text-transform: uppercase;
        letter-spacing: .06em;
        border-bottom: 1px solid #f0f0f0;
        white-space: nowrap
    }

    .la-table tbody tr {
        border-bottom: 1px solid #f7f7f7;
        transition: background .1s
    }

        .la-table tbody tr:last-child {
            border-bottom: none
        }

        .la-table tbody tr:hover {
            background: #fafcff
        }

    .la-table tbody td {
        padding: 11px 14px;
        color: #1a1a1a;
        white-space: nowrap;
        vertical-align: middle
    }

.la-td-name {
    font-weight: 500;
    color: #1a1a1a
}

.la-td-muted {
    color: #999
}

.la-td-center {
    text-align: center
}

.la-empty {
    padding: 2.5rem;
    text-align: center;
    color: #ccc;
    font-size: 13px
}

.la-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .02em
}

.la-badge-new {
    background: #EBF4FF;
    color: #185FA5
}

.la-badge-active {
    background: #EAF7EE;
    color: #2D7D46
}

.la-badge-cold {
    background: #F5F5F5;
    color: #888
}

.la-badge-warm {
    background: #FFF4E5;
    color: #A05C00
}

.la-badge-group {
    background: #F0EAFF;
    color: #5B21B6;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 20px;
    font-weight: 600
}

.la-action-btn {
    width: 30px;
    height: 30px;
    border: 1px solid #e8e8e8;
    background: #fff;
    border-radius: 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #aaa;
    text-decoration: none;
    transition: all .15s;
    vertical-align: middle
}

    .la-action-btn:hover {
        background: #f5f5f5;
        color: #555;
        border-color: #ccc
    }

    .la-action-btn.la-del:hover {
        background: #FFF0F0;
        color: #C0392B;
        border-color: #FFCDD2
    }

    .la-action-btn svg {
        width: 14px;
        height: 14px;
        stroke: currentColor;
        fill: none;
        stroke-width: 2;
        stroke-linecap: round;
        stroke-linejoin: round;
        pointer-events: none
    }

.la-action-gap {
    margin-left: 5px
}

.la-upload-row {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
    flex-wrap: wrap
}

    .la-upload-row .la-upload-zone {
        flex: 1;
        min-width: 240px
    }

@@media(max-width:600px) {
    .la-card-body {
        padding: 1rem
    }

    .la-card-head {
        padding: .9rem 1rem
    }

    .la-btn-primary, .la-btn-cancel, .la-btn-success, .la-btn-outline {
        width: 100%;
        justify-content: center
    }

    .la-actions {
        flex-direction: column
    }
}
