﻿/* =========================================
   Sellstock Page
   Main color: #309a63
   Header, footer and .blog-hero are excluded.
========================================= */

:root {
    --sellstock-primary: #309a63;
    --sellstock-primary-dark: #267d50;
    --sellstock-primary-deep: #1b643e;
    --sellstock-primary-soft: #edf8f2;
    --sellstock-border: #dce8e1;
    --sellstock-text: #202b25;
    --sellstock-muted: #718078;
    --sellstock-bg: #f5faf7;
    --sellstock-white: #fff;
    --sellstock-danger: #db4f57;
    --sellstock-shadow: 0 14px 36px rgba(31, 100, 62, 0.08);
}

.sellstock-main {
    padding-top: 42px;
    padding-bottom: 46px;
}

/* Process */
.sellstock-process {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 150px;
    margin-bottom: 34px;
    padding: 28px 44px;
    overflow: hidden;
    border-radius: 14px;
    background:
        radial-gradient(circle at 94% 50%, rgba(255,255,255,.10) 0 90px, transparent 91px),
        radial-gradient(circle at 94% 50%, rgba(255,255,255,.07) 0 145px, transparent 146px),
        linear-gradient(120deg, var(--sellstock-primary-deep), var(--sellstock-primary));
    box-shadow: var(--sellstock-shadow);
    box-sizing: border-box;
}

.sellstock-process-heading {
    position: relative;
    z-index: 2;
    flex: 0 0 210px;
    padding-right: 32px;
    color: #fff;
    font-size: 18px;
    line-height: 29px;
    font-weight: 700;
}

.sellstock-process-flow {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1;
    min-width: 0;
}

.sellstock-process-step {
    flex: 1;
    min-width: 0;
    text-align: center;
    color: #fff;
}

.sellstock-process-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    margin: 0 auto 11px;
    border: 1px solid rgba(255,255,255,.38);
    border-radius: 16px;
    background: rgba(255,255,255,.12);
    box-shadow: inset 0 0 0 5px rgba(255,255,255,.035);
    color: #fff;
    font-size: 25px;
}

.sellstock-process-step span {
    display: block;
    color: #fff;
    font-size: 13px;
    line-height: 19px;
    font-weight: 600;
}

.sellstock-process-arrow {
    flex: 0 0 34px;
    margin-top: -30px;
    color: #fff;
    text-align: center;
    font-size: 22px;
    opacity: .9;
}

/* Tabs */
.sellstock-tabs-section {
    border: 1px solid var(--sellstock-border);
    border-radius: 14px;
    background: var(--sellstock-white);
    box-shadow: var(--sellstock-shadow);
    overflow: hidden;
}

.sellstock-tabs {
    display: flex;
    padding: 0 28px;
    border-bottom: 1px solid var(--sellstock-border);
    background: #fbfdfc;
}

.sellstock-tab-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 62px;
    padding: 0 26px;
    border: 0;
    background: transparent;
    color: #53635a;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    outline: none;
}

.sellstock-tab-btn::after {
    position: absolute;
    right: 18px;
    bottom: -1px;
    left: 18px;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: transparent;
    content: "";
}

.sellstock-tab-btn i {
    color: #8b9991;
    font-size: 18px;
}

.sellstock-tab-btn.active {
    color: var(--sellstock-primary);
    background: var(--sellstock-primary-soft);
}

.sellstock-tab-btn.active i {
    color: var(--sellstock-primary);
}

.sellstock-tab-btn.active::after {
    background: var(--sellstock-primary);
}

.sellstock-tab-panel {
    display: none;
    padding: 30px;
    background: var(--sellstock-bg);
}

.sellstock-tab-panel.active {
    display: block;
}

.sellstock-panel-intro {
    margin-bottom: 22px;
}

.sellstock-panel-intro > span,
.sellstock-card-kicker,
.sellstock-contact-head > span {
    display: block;
    margin-bottom: 6px;
    color: var(--sellstock-primary);
    font-size: 12px;
    line-height: 18px;
    font-weight: 700;
    letter-spacing: 1.1px;
    text-transform: uppercase;
}

.sellstock-panel-intro h2,
.sellstock-card-head h3,
.sellstock-contact-head h3,
.sellstock-upload-card h3 {
    margin: 0 0 8px;
    color: var(--sellstock-text);
    font-weight: 700;
}

.sellstock-panel-intro h2 {
    font-size: 27px;
    line-height: 36px;
}

.sellstock-panel-intro p,
.sellstock-card-head p,
.sellstock-contact-head p,
.sellstock-upload-card > p {
    margin: 0;
    color: var(--sellstock-muted);
    font-size: 14px;
    line-height: 24px;
}

/* Cards */
.sellstock-inventory-card,
.sellstock-contact-card,
.sellstock-upload-card,
.sellstock-upload-contact-card {
    border: 1px solid var(--sellstock-border);
    border-radius: 12px;
    background: #fff;
}

.sellstock-inventory-card {
    padding: 24px;
}

.sellstock-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.sellstock-card-head h3,
.sellstock-contact-head h3,
.sellstock-upload-card h3 {
    font-size: 23px;
    line-height: 32px;
}

.sellstock-list-count {
    flex: 0 0 96px;
    padding: 12px 10px;
    border: 1px solid #cce6d7;
    border-radius: 11px;
    background: var(--sellstock-primary-soft);
    text-align: center;
}

.sellstock-list-count span {
    display: block;
    color: var(--sellstock-primary);
    font-size: 25px;
    line-height: 30px;
    font-weight: 700;
}

.sellstock-list-count small {
    display: block;
    margin-top: 2px;
    color: var(--sellstock-muted);
    font-size: 11px;
}

/* Table */
.sellstock-table-wrap {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--sellstock-border);
    border-radius: 9px;
}

.sellstock-table {
    width: 100%;
    min-width: 980px;
    margin: 0;
    border-collapse: collapse;
    table-layout: fixed;
}

.sellstock-table th,
.sellstock-table td {
    border-right: 1px solid var(--sellstock-border);
    border-bottom: 1px solid var(--sellstock-border);
    vertical-align: middle;
}

.sellstock-table th:last-child,
.sellstock-table td:last-child {
    border-right: 0;
}

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

.sellstock-table th {
    padding: 13px 10px;
    background: #eff7f2;
    color: #33453b;
    font-size: 12px;
    line-height: 18px;
    font-weight: 700;
    text-align: left;
}

.sellstock-table th span,
.sellstock-form-group label em {
    color: var(--sellstock-danger);
    font-style: normal;
}

.sellstock-table td {
    padding: 9px;
    background: #fff;
}

.sellstock-table th:nth-child(2),
.sellstock-table td:nth-child(2) { width: 19%; }
.sellstock-table th:nth-child(3),
.sellstock-table td:nth-child(3) { width: 16%; }
.sellstock-table th:nth-child(4),
.sellstock-table td:nth-child(4) { width: 25%; }
.sellstock-table th:nth-child(5),
.sellstock-table td:nth-child(5) { width: 13%; }
.sellstock-table th:nth-child(6),
.sellstock-table td:nth-child(6) { width: 15%; }

.sellstock-check-col {
    width: 42px;
    text-align: center !important;
}

.sellstock-action-col {
    width: 50px;
    text-align: center !important;
}

.sellstock-table input.form-control,
.sellstock-form-group input,
.sellstock-form-group select,
.sellstock-form-group textarea {
    width: 100%;
    border: 1px solid #d7e1db;
    border-radius: 7px;
    background: #fff;
    box-sizing: border-box;
    color: var(--sellstock-text);
    font-size: 13px;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.sellstock-table input.form-control {
    height: 39px;
    padding: 7px 10px;
}

.sellstock-table input.form-control:focus,
.sellstock-form-group input:focus,
.sellstock-form-group select:focus,
.sellstock-form-group textarea:focus {
    border-color: var(--sellstock-primary);
    box-shadow: 0 0 0 3px rgba(48,154,99,.10);
}

.sellstock-delete-btn {
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid #f0cfd2;
    border-radius: 7px;
    background: #fff7f7;
    color: var(--sellstock-danger);
    cursor: pointer;
}

.sellstock-table-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 18px;
}

.sellstock-table-buttons {
    display: flex;
    gap: 10px;
}

.sellstock-btn,
.sellstock-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 7px;
    font-weight: 600;
    cursor: pointer;
    transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.sellstock-btn {
    min-height: 40px;
    padding: 0 17px;
    font-size: 13px;
}

.sellstock-btn-primary,
.sellstock-submit-btn {
    border: 1px solid var(--sellstock-primary);
    background: var(--sellstock-primary);
    color: #fff;
}

.sellstock-btn-light {
    border: 1px solid var(--sellstock-border);
    background: #fff;
    color: #506159;
}

.sellstock-btn:hover,
.sellstock-submit-btn:hover {
    transform: translateY(-1px);
}

.sellstock-btn-primary:hover,
.sellstock-submit-btn:hover {
    background: var(--sellstock-primary-dark);
    border-color: var(--sellstock-primary-dark);
}

.sellstock-estimated-value {
    color: var(--sellstock-muted);
    font-size: 13px;
}

.sellstock-estimated-value strong {
    margin-left: 7px;
    color: var(--sellstock-primary);
    font-size: 20px;
}

/* Contact form */
.sellstock-contact-card {
    margin-top: 22px;
    padding: 26px;
}

.sellstock-contact-head {
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--sellstock-border);
}

.sellstock-contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 20px;
}

.sellstock-form-group-full {
    grid-column: 1 / -1;
}

.sellstock-form-group label {
    display: block;
    margin-bottom: 7px;
    color: #34453b;
    font-size: 13px;
    line-height: 20px;
    font-weight: 600;
}

.sellstock-form-group input,
.sellstock-form-group select {
    height: 44px;
    padding: 9px 12px;
}

.sellstock-form-group textarea {
    min-height: 105px;
    padding: 11px 12px;
    resize: vertical;
}

.sellstock-submit-row {
    margin-top: 22px;
    text-align: right;
}

.sellstock-submit-btn {
    min-width: 245px;
    min-height: 46px;
    padding: 0 24px;
    font-size: 14px;
}

/* Upload tab */
.sellstock-upload-layout {
    display: grid;
    grid-template-columns: minmax(300px, .85fr) minmax(0, 1.4fr);
    gap: 22px;
    align-items: start;
}

.sellstock-upload-card,
.sellstock-upload-contact-card {
    padding: 26px;
}

.sellstock-upload-dropzone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 265px;
    margin-top: 22px;
    padding: 26px;
    border: 1px dashed #9fd1b6;
    border-radius: 12px;
    background: var(--sellstock-primary-soft);
    box-sizing: border-box;
    text-align: center;
    cursor: pointer;
    transition: border-color .2s ease, background .2s ease;
}

.sellstock-upload-dropzone:hover,
.sellstock-upload-dropzone.has-file {
    border-color: var(--sellstock-primary);
    background: #e5f5ec;
}

.sellstock-upload-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    margin-bottom: 17px;
    border-radius: 50%;
    background: #fff;
    color: var(--sellstock-primary);
    font-size: 31px;
    box-shadow: 0 9px 24px rgba(48,154,99,.12);
}

.sellstock-upload-dropzone strong {
    color: var(--sellstock-text);
    font-size: 16px;
    line-height: 24px;
}

.sellstock-upload-file-name {
    display: block;
    max-width: 100%;
    margin-top: 8px;
    overflow: hidden;
    color: var(--sellstock-primary);
    font-size: 13px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sellstock-upload-dropzone small {
    margin-top: 9px;
    color: var(--sellstock-muted);
    font-size: 12px;
    line-height: 20px;
}

#sellFile {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

.sellstock-upload-help {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-top: 16px;
    padding: 12px 13px;
    border-radius: 8px;
    background: #f4f7f5;
    color: #66756d;
    font-size: 12px;
    line-height: 19px;
}

.sellstock-upload-help i {
    margin-top: 2px;
    color: var(--sellstock-primary);
}

/* Loading */
.window-container {
    position: fixed;
    z-index: 99999;
    inset: 0;
    display: none;
    background: rgba(15,30,21,.52);
}

.window-main {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 310px;
    padding: 30px;
    border-radius: 12px;
    background: #fff;
    box-sizing: border-box;
    text-align: center;
    transform: translate(-50%, -50%);
}

.window-loading-icon {
    width: 42px;
    height: 42px;
    margin: 0 auto 14px;
    border: 4px solid #d7ecdf;
    border-top-color: var(--sellstock-primary);
    border-radius: 50%;
    animation: sellstockSpin .8s linear infinite;
}

.window-loading-title {
    color: var(--sellstock-text);
    font-size: 18px;
    font-weight: 700;
}

.window-loading-text {
    margin-top: 7px;
    color: var(--sellstock-muted);
    font-size: 13px;
    line-height: 21px;
}

@keyframes sellstockSpin {
    to { transform: rotate(360deg); }
}

/* Alert */
.sellstock-alert-modal {
    position: fixed;
    z-index: 100000;
    inset: 0;
    display: none;
}

.sellstock-alert-mask {
    position: absolute;
    inset: 0;
    background: rgba(13,27,19,.56);
}

.sellstock-alert-box {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(430px, calc(100% - 32px));
    padding: 30px;
    border-radius: 13px;
    background: #fff;
    box-sizing: border-box;
    text-align: center;
    transform: translate(-50%, -50%);
}

.sellstock-alert-x {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: 0;
    background: transparent;
    color: #8a9890;
    cursor: pointer;
}

.sellstock-alert-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin: 0 auto 17px;
    border-radius: 50%;
    background: #fff1f1;
    color: var(--sellstock-danger);
    font-size: 27px;
}

.sellstock-alert-modal.success .sellstock-alert-icon {
    background: var(--sellstock-primary-soft);
    color: var(--sellstock-primary);
}

.sellstock-alert-box h3 {
    margin: 0 0 9px;
    color: var(--sellstock-text);
    font-size: 21px;
}

.sellstock-alert-box p {
    margin: 0;
    color: var(--sellstock-muted);
    font-size: 14px;
    line-height: 23px;
}

.sellstock-alert-close-btn {
    min-width: 120px;
    height: 40px;
    margin-top: 22px;
    border: 0;
    border-radius: 7px;
    background: var(--sellstock-primary);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}

/* Responsive */
@media (max-width: 1100px) {
    .sellstock-process {
        padding: 26px;
    }

    .sellstock-process-heading {
        flex-basis: 180px;
        font-size: 19px;
        line-height: 26px;
    }

    .sellstock-upload-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .sellstock-process {
        display: block;
    }

    .sellstock-process-heading {
        padding: 0 0 23px;
        text-align: center;
    }

    .sellstock-process-flow {
        align-items: flex-start;
    }

    .sellstock-tabs {
        padding: 0 12px;
    }

    .sellstock-tab-btn {
        flex: 1;
        justify-content: center;
        padding: 0 12px;
    }
}

@media (max-width: 768px) {
    .sellstock-main {
        padding-top: 26px;
        padding-bottom: 30px;
    }

    .sellstock-process {
        margin-bottom: 24px;
        padding: 24px 18px;
        border-radius: 11px;
    }

    .sellstock-process-flow {
        display: grid;
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .sellstock-process-step {
        display: flex;
        align-items: center;
        gap: 14px;
        text-align: left;
    }

    .sellstock-process-icon {
        flex: 0 0 50px;
        width: 50px;
        height: 50px;
        margin: 0;
        border-radius: 13px;
        font-size: 21px;
    }

    .sellstock-process-step span {
        font-size: 14px;
        line-height: 20px;
    }

    .sellstock-process-step span br {
        display: none;
    }

    .sellstock-process-arrow {
        display: none;
    }

    .sellstock-tabs {
        display: grid;
        grid-template-columns: 1fr 1fr;
        padding: 0;
    }

    .sellstock-tab-btn {
        min-height: 58px;
        padding: 8px 10px;
        font-size: 12px;
        line-height: 18px;
        text-align: center;
    }

    .sellstock-tab-btn i {
        display: none;
    }

    .sellstock-tab-panel {
        padding: 20px 14px;
    }

    .sellstock-panel-intro h2 {
        font-size: 22px;
        line-height: 31px;
    }

    .sellstock-inventory-card,
    .sellstock-contact-card,
    .sellstock-upload-card,
    .sellstock-upload-contact-card {
        padding: 18px;
        border-radius: 10px;
    }

    .sellstock-card-head {
        display: block;
    }

    .sellstock-list-count {
        width: 100%;
        margin-top: 14px;
        box-sizing: border-box;
    }

    .sellstock-table-actions {
        display: block;
    }

    .sellstock-table-buttons {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .sellstock-estimated-value {
        margin-top: 16px;
        text-align: right;
    }

    .sellstock-contact-grid {
        grid-template-columns: 1fr;
    }

    .sellstock-form-group-full {
        grid-column: auto;
    }

    .sellstock-submit-btn {
        width: 100%;
        min-width: 0;
    }

    .sellstock-upload-dropzone {
        min-height: 220px;
    }
}
