/* =========================================================
    ETail ADMIN - SHARED
========================================================= */

.admin-page {
    padding: 24px;
    min-height: 100%;
    background: #f5f7fb;
}


/* =========================================================
   HERO
   ========================================================= */

.admin-hero {
    padding: 18px 30px;
    margin-bottom: 24px;

    background: linear-gradient(
            135deg,
            #ffffff 0%,
            #f3f7ff 100%
    );

    border: 1px solid #dce6f3;
    border-radius: 14px;

    box-shadow:
            0 1px 2px rgba(16, 24, 40, 0.03),
            0 7px 24px rgba(35, 72, 130, 0.05);
}

.admin-hero-main {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 24px;
}

.admin-hero-left {
    min-width: 0;
}

.admin-hero-pill {
    display: inline-flex;
    align-items: center;

    gap: 12px;

    min-height: 64px;

    padding: 0 24px;

    background: #eaf2ff;
    color: #1f5fe0;

    border: 1px solid #d7e5ff;
    border-radius: 999px;

    font-size: 1.25rem;
    font-weight: 700;
}

.admin-hero-pill svg {
    width: 28px;
    height: 28px;

    fill: currentColor;
}

.admin-hero-subtitle {
    margin: 18px 0 0;

    color: #73809a;

    font-size: 1rem;
}

/* =========================================================
   HERO PILLS UPDATES
   ========================================================= */

.admin-hero-pills {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.admin-hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 16px;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 700;
}

.admin-hero-pill svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.admin-hero-pill-blue {
    background: #eaf2ff;
    color: #2b61d6;
    border: 1px solid #d0e1fd;
}

.admin-hero-pill-green {
    background: #e8f7ed;
    color: #1b8744;
    border: 1px solid #ccecd6;
}

.admin-hero-subtitle {
    margin: 14px 0 0;
    color: #73809a;
    font-size: 0.9rem;
}

/* =========================================================
   SECTION TILES INNER LAYOUT
   ========================================================= */

.admin-section-tile {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    background: #ffffff;
    border: 1px solid #e4e9f2;
    border-radius: 14px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.02), 0 6px 18px rgba(16, 24, 40, 0.03);
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.admin-tile-title {
    margin: 16px 0 6px;
    font-size: 1.05rem;
    font-weight: 700;
    color: #1b253a;
}

.admin-tile-desc {
    margin: 0 0 20px;
    font-size: 0.88rem;
    color: #73809a;
    line-height: 1.45;
    flex-grow: 1;
}

.admin-tile-btn {
    width: 100%;
}


/* =========================================================
   BUTTONS
   ========================================================= */

.admin-primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    flex: 0 0 auto;

    height: 46px;

    padding: 0 20px;

    background: #3478ed;
    color: #ffffff;

    border: 1px solid #3478ed;
    border-radius: 9px;

    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;

    white-space: nowrap;

    cursor: pointer;

    box-shadow:
            0 4px 12px rgba(52, 120, 237, 0.16);

    transition:
            background-color 0.15s ease,
            border-color 0.15s ease,
            transform 0.15s ease,
            box-shadow 0.15s ease;
}

.admin-primary-button svg {
    width: 20px;
    height: 20px;

    fill: currentColor;
}

.admin-primary-button:hover {
    background: #2868d8;
    border-color: #2868d8;

    color: #ffffff;

    transform: translateY(-1px);

    box-shadow:
            0 6px 16px rgba(52, 120, 237, 0.20);
}

.admin-primary-button:active {
    transform: translateY(0);
}

.admin-primary-button:focus-visible {
    outline: 2px solid #8eb4f5;
    outline-offset: 3px;
}


/* =========================================================
   SECONDARY / BACK BUTTON
   ========================================================= */

.admin-secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    height: 40px;

    padding: 0 14px;

    background: #ffffff;
    color: #4e5c73;

    border: 1px solid #dbe2ec;
    border-radius: 8px;

    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 600;

    cursor: pointer;

    transition:
            background-color 0.15s ease,
            border-color 0.15s ease,
            color 0.15s ease;
}

.admin-secondary-button svg {
    width: 17px;
    height: 17px;

    fill: currentColor;
}

.admin-secondary-button:hover {
    background: #f1f6ff;
    border-color: #b8cae9;

    color: #3478ed;
}


/* =========================================================
   CARD
   ========================================================= */

.admin-card {
    background: #ffffff;

    border: 1px solid #e4e9f2;
    border-radius: 14px;

    box-shadow:
            0 1px 2px rgba(16, 24, 40, 0.02),
            0 8px 28px rgba(16, 24, 40, 0.04);
}


/* =========================================================
   LIST CARD
   ========================================================= */

.admin-list-card {
    overflow: hidden;

    padding: 0;
}

/* =========================================================
   FORM CONTROLS & INPUTS (GENERIC SHARED)
========================================================= */

.admin-input,
.admin-select {
    width: 100%;
    height: 38px;
    padding: 0 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: #334155;
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 500;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.admin-input[readonly] {
    background: #f8fafc;
    color: #475569;
}

.admin-input:focus:not([readonly]),
.admin-select:focus {
    background: #ffffff;
    border-color: #3478ed;
    box-shadow: 0 0 0 3px rgba(52, 120, 237, 0.09);
}

/* =========================================================
   ROW LIST LAYOUT (EXTERNAL APPS & SERVICES)
========================================================= */

.admin-row-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.admin-row-item {
    display: grid;
    grid-template-columns: 160px 1fr 90px 1fr;
    align-items: center;
    gap: 12px;
}

.admin-row-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: #334155;
}

.admin-row-sublabel {
    font-size: 0.8rem;
    font-weight: 600;
    color: #64748b;
    text-align: right;
}

.admin-row-spacer {
    display: block;
}


/* =========================================================
   TABLE WRAPPER
   ========================================================= */

.admin-table-wrapper {
    width: 100%;

    overflow-x: auto;

    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

.admin-table-wrapper::-webkit-scrollbar {
    height: 7px;
}

.admin-table-wrapper::-webkit-scrollbar-track {
    background: transparent;
}

.admin-table-wrapper::-webkit-scrollbar-thumb {
    background: #cbd5e1;

    border-radius: 10px;
}

.admin-table-wrapper::-webkit-scrollbar-thumb:hover {
    background: #aeb9c9;
}


/* =========================================================
   TABLE
   ========================================================= */

.admin-table {
    width: 100%;

    min-width: 1250px;

    border-collapse: separate;
    border-spacing: 0;
}


/* =========================================================
   TABLE HEADER
   ========================================================= */

.admin-table thead tr {
    background: #fbfcfe;
}

.admin-table thead th {
    padding: 0;

    vertical-align: top;

    background: #fbfcfe;

    border-bottom: 1px solid #e4e9f2;

    color: #59667d;

    font-size: 0.78rem;
    font-weight: 700;
}


/* =========================================================
   COLUMN HEADER
   ========================================================= */

.admin-column-header {
    display: flex;
    flex-direction: column;

    gap: 10px;

    min-height: 82px;

    padding: 14px 16px 12px;
}

.admin-column-title {
    display: flex;
    align-items: center;

    min-height: 20px;

    color: #4c5970;

    font-size: 0.76rem;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: 0.025em;
}


/* =========================================================
   COLUMN SEARCH
   ========================================================= */

.admin-column-search {
    position: relative;

    display: flex;
    align-items: center;

    width: 100%;
}

.admin-column-search svg {
    position: absolute;

    left: 10px;

    width: 15px;
    height: 15px;

    fill: #9aa5b7;

    pointer-events: none;
}

.admin-column-search input {
    width: 100%;

    height: 32px;

    padding: 0 9px 0 31px;

    background: #ffffff;

    border: 1px solid #dce3ed;
    border-radius: 7px;

    color: #27344d;

    font-family: inherit;
    font-size: 0.78rem;

    outline: none;

    transition:
            border-color 0.15s ease,
            box-shadow 0.15s ease,
            background-color 0.15s ease;
}

.admin-column-search input::placeholder {
    color: #a3adbc;
}

.admin-column-search input:hover {
    border-color: #cbd5e3;
}

.admin-column-search input:focus {
    background: #ffffff;

    border-color: #8eb4f5;

    box-shadow:
            0 0 0 3px rgba(52, 120, 237, 0.09);
}


/* =========================================================
   TABLE BODY
   ========================================================= */

.admin-table tbody tr {
    background: #ffffff;

    transition:
            background-color 0.12s ease;
}

.admin-table tbody tr:hover {
    background: #f9fbff;
    box-shadow: inset 4px 0 0 #3478ed;
}

.admin-table tbody td {
    height: 68px;

    padding: 10px 16px;

    border-bottom: 1px solid #edf0f5;

    color: #344054;

    font-size: 0.88rem;

    vertical-align: middle;
}

.admin-table tbody tr:last-child td {
    border-bottom: 0;
}


/* =========================================================
   QUICKGRID SORTING
   ========================================================= */

.admin-table th[aria-sort] {
    cursor: pointer;
}

.admin-table th[aria-sort]:hover {
    background: #f6f9fd;
}

.admin-table th button {
    color: inherit;
}

.admin-table th button:hover {
    color: #3478ed;
}


/* =========================================================
   STORE NAME COLUMN
   ========================================================= */

.store-name-column {
    min-width: 220px;
}


/* =========================================================
   STORE NAME CELL
   ========================================================= */

.admin-name-cell {
    display: flex;
    align-items: center;

    gap: 11px;

    min-width: 0;
}

.admin-name-cell-button {
    width: 100%;

    padding: 0;

    background: transparent;

    border: 0;

    color: inherit;

    font-family: inherit;

    text-align: left;

    cursor: pointer;
}

.admin-name-cell-button:hover .admin-name-content strong {
    color: #3478ed;
}

.admin-name-cell-button:focus-visible {
    outline: 2px solid #8eb4f5;
    outline-offset: 3px;

    border-radius: 5px;
}


/* =========================================================
   STORE STATUS ICON
   ========================================================= */

.pos-store-status-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 24px;

    width: 24px;
    height: 24px;

    border-radius: 50%;
}

.pos-store-status-icon.is-active {
    background: #e9f8ef;
    color: #198754;
}

.pos-store-status-icon.is-inactive {
    background: #f1f3f5;
    color: #8b95a5;
}


/* =========================================================
   STORE NAME CONTENT
   ========================================================= */

.admin-name-content {
    display: flex;
    flex-direction: column;

    min-width: 0;
}

.admin-name-content strong {
    overflow: hidden;

    color: #202b43;

    font-size: 0.9rem;
    font-weight: 650;

    text-overflow: ellipsis;
    white-space: nowrap;

    transition: color 0.15s ease;
}

.admin-name-content span {
    margin-top: 3px;

    overflow: hidden;

    color: #98a2b3;

    font-size: 0.72rem;
    font-weight: 500;

    text-overflow: ellipsis;
    white-space: nowrap;
}


/* =========================================================
   STANDARD CELL TEXT
   ========================================================= */

.admin-column-text {
    display: block;

    overflow: hidden;

    max-width: 100%;

    color: #46536a;

    font-size: 0.86rem;
    font-weight: 500;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-email-text {
    color: #3f4d66;
}

.admin-address-text {
    max-width: 220px;
}


/* =========================================================
   STATUS
   ========================================================= */

.admin-status {
    display: inline-flex;
    align-items: center;

    gap: 6px;

    padding: 6px 10px;

    border-radius: 999px;

    font-size: 0.78rem;
    font-weight: 600;

    white-space: nowrap;
}

.admin-status-dot {
    width: 7px;
    height: 7px;

    border-radius: 50%;
}

.admin-status-active {
    background: #e9f8ef;
    color: #187a43;

    border: 1px solid #d1f0dc;
}

.admin-status-active .admin-status-dot {
    background: #198754;
}

.admin-status-inactive {
    background: #f1f3f5;
    color: #667085;

    border: 1px solid #e1e5e9;
}

.admin-status-inactive .admin-status-dot {
    background: #6c757d;
}


/* =========================================================
   LIST FOOTER
   ========================================================= */

.admin-list-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    min-height: 76px;
    font-family: inherit;
    font-size: 0.84rem;

    padding: 15px 20px;

    background: #ffffff;

    border-top: 1px solid #e8ecf2;
}


/* =========================================================
   PAGE SIZE
   ========================================================= */

.admin-page-size {
    display: flex;
    align-items: center;

    gap: 9px;

    color: #4e5c73;

    font-size: 0.84rem;
    font-weight: 500;
}

.admin-page-size select {
    width: 70px;
    height: 36px;

    padding: 0 10px;

    background: #ffffff;

    border: 1px solid #dbe2ec;
    border-radius: 7px;

    color: #27334c;

    font-family: inherit;
    font-size: 0.84rem;
    font-weight: 600;

    outline: none;
    cursor: pointer;

    transition:
            background-color 0.15s ease,
            border-color 0.15s ease,
            color 0.15s ease;
}

.admin-page-size select:hover {
    border-color: #cbd5e3;
}

.admin-page-size select:focus {
    background: #f1f6ff;

    border-color: #b8cae9;

    color: #3478ed;
}
.admin-page-size select:focus {
    border-color: #3478ed;

    box-shadow: 0 0 0 3px rgba(52, 120, 237, 0.09);
}


/* =========================================================
   PAGINATOR
   ========================================================= */

.admin-list-footer .paginator {
    display: flex;
    align-items: center;

    gap: 5px;
}

.admin-list-footer .paginator button {
    min-width: 34px;
    height: 34px;

    padding: 0 9px;

    color: #59667d;

    font-family: inherit;
    font-size: 0.8rem;

    cursor: pointer;

    transition:
            background-color 0.15s ease,
            border-color 0.15s ease,
            color 0.15s ease;
}

.admin-list-footer .paginator button:hover:not(:disabled) {
    color: #3478ed;
}

.admin-list-footer .paginator button:disabled {
    opacity: 0.45;
    cursor: default;
}
.admin-pagination{
    width: 100%;
}

/* =========================================================
   EMPTY STATE
   ========================================================= */

.admin-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    min-height: 300px;

    padding: 48px 24px;

    text-align: center;

    background: #ffffff;

    border-top: 1px solid #edf0f5;
}

.admin-empty-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 58px;
    height: 58px;

    margin-bottom: 16px;

    background: #edf4ff;

    border-radius: 50%;

    color: #3478ed;
}

.admin-empty-icon svg {
    width: 28px;
    height: 28px;

    fill: currentColor;
}

.admin-empty h3 {
    margin: 0;

    color: #27344d;

    font-size: 1rem;
    font-weight: 700;
}

.admin-empty p {
    margin: 7px 0 0;

    color: #8a96aa;

    font-size: 0.86rem;
}


/* =========================================================
   DETAILS
   ========================================================= */

.admin-details-card {
    padding: 24px;
}

.admin-details-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 24px;
    padding-bottom: 18px;

    border-bottom: 1px solid #e8ecf2;
}

.admin-details-title {
    margin: 0;

    color: #111a37;

    font-size: 1.15rem;
    font-weight: 700;
}

.admin-details-subtitle {
    margin: 5px 0 0;

    color: #73809a;

    font-size: 0.88rem;
}

.admin-details-grid {
    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 18px;
}

.admin-details-section {
    padding: 20px;

    background: #fbfcfe;

    border: 1px solid #e4e9f2;
    border-radius: 12px;
}

.admin-details-section-full {
    grid-column: 1 / -1;
}

.admin-details-section-title {
    display: flex;
    align-items: center;

    gap: 10px;

    margin-bottom: 18px;

    color: #17213e;

    font-size: 0.98rem;
    font-weight: 700;
}

.admin-details-section-title svg {
    width: 20px;
    height: 20px;

    fill: #3478ed;
}

.admin-details-fields {
    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 16px 24px;
}

.admin-details-field {
    min-width: 0;
}

.admin-details-field-label {
    display: block;

    margin-bottom: 5px;

    color: #8a96aa;

    font-size: 0.76rem;
    font-weight: 600;

    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.admin-details-field-value {
    display: block;

    overflow: hidden;

    color: #25314b;

    font-size: 0.92rem;
    font-weight: 500;

    text-overflow: ellipsis;
    white-space: nowrap;
}


/* =========================================================
   SECTION TILES
   ========================================================= */

.admin-sections-card {
    /*padding: 20px;*/
}

.admin-sections-grid {
    display: grid;

    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 18px;
}

.admin-section-tile {
    display: flex;
    flex-direction: column;

    min-height: 240px;

    padding: 24px;

    background: #ffffff;

    border: 1px solid #e4e9f2;
    border-radius: 14px;

    box-shadow:
            0 1px 2px rgba(16, 24, 40, 0.02),
            0 6px 18px rgba(16, 24, 40, 0.03);

    transition:
            border-color 0.15s ease,
            box-shadow 0.15s ease,
            transform 0.15s ease;
}

.admin-section-tile:hover {
    border-color: #d5e1f2;

    box-shadow:
            0 2px 4px rgba(16, 24, 40, 0.03),
            0 10px 24px rgba(16, 24, 40, 0.06);

    transform: translateY(-1px);
}

.admin-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 58px;

    width: 58px;
    height: 58px;

    background: #edf4ff;

    border-radius: 50%;
}

.admin-icon-wrap svg {
    width: 28px;
    height: 28px;

    fill: #3478ed;
}


/* =========================================================
   RESPONSIVE - TABLET
   ========================================================= */

@media (max-width: 1100px) {

    .admin-sections-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-details-grid {
        grid-template-columns: 1fr;
    }

    .admin-list-footer {
        align-items: flex-start;

        flex-direction: column;
    }

    .admin-list-footer .paginator {
        width: 100%;
    }
}


/* =========================================================
   RESPONSIVE - MOBILE
   ========================================================= */

@media (max-width: 760px) {

    .admin-page {
        padding: 16px;
    }

    .admin-hero {
        padding: 20px;
    }

    .admin-hero-main {
        align-items: stretch;

        flex-direction: column;
    }

    .admin-hero-pill {
        width: 100%;

        min-height: 58px;

        padding: 0 20px;

        justify-content: flex-start;
    }

    .admin-primary-button {
        width: 100%;
    }

    .admin-sections-grid {
        grid-template-columns: 1fr;
    }

    .admin-details-card {
        padding: 16px;
    }

    .admin-details-fields {
        grid-template-columns: 1fr;
    }

    .admin-details-header {
        align-items: flex-start;

        flex-direction: column;
    }

    .admin-list-footer {
        padding: 14px 16px;
    }

    .admin-page-size {
        width: 100%;

        justify-content: flex-start;
    }
}


/* =========================================================
   RESPONSIVE - SMALL MOBILE
   ========================================================= */

@media (max-width: 480px) {

    .admin-page {
        padding: 10px;
    }

    .admin-hero {
        margin-bottom: 16px;

        padding: 16px;
    }

    .admin-hero-pill {
        font-size: 1.05rem;
    }

    .admin-hero-subtitle {
        margin-top: 14px;

        font-size: 0.88rem;

        line-height: 1.45;
    }

    .admin-empty {
        min-height: 240px;

        padding: 36px 18px;
    }
}