/* --- TimeScan Custom Palette - Version 3.0 --- */
:root {
    --ts-primary: #54A474;
    --ts-secondary: #54595F;
    --ts-accent: #6EA942;
    --ts-text: #0E0E0C;
    --ts-light-gray: #E7E7E7;
    --ts-white: #FFFFFF;
    --ts-font-family: "Quicksand", sans-serif;
}
.tsc-calculator-wrapper {
    font-family: var(--ts-font-family);
    max-width: 1100px;
    margin: 40px auto;
    padding: 35px;
    background: var(--ts-white);
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(84, 164, 116, 0.12);
    color: var(--ts-text);
    border: 1px solid var(--ts-light-gray);
    line-height: 1.6;
    position: relative;
}
.tsc-calculator-wrapper * {
    box-sizing: border-box;
    font-family: var(--ts-font-family);
}
.tsc-main-total-container {
    position: absolute;
    top: 35px;
    right: 35px;
    text-align: right;
    z-index: 10;
}
.tsc-main-total-label {
    display: block;
    font-size: 1.4rem;
    color: var(--ts-primary);
    margin-bottom: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: right;
}
.tsc-boxes-wrapper {
    display: flex;
    gap: 15px;
}
.tsc-box {
    background: var(--ts-white);
    border: 2px solid #E0E0E0;
    border-radius: 15px;
    padding: 18px 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 140px;
}
.tsc-box-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--ts-primary);
    line-height: 1.2;
    margin-bottom: 2px;
}
.tsc-box-label {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--ts-secondary);
    line-height: 1;
}
.tsc-title {
    font-size: 2.2rem !important;
    font-weight: 700 !important;
    text-align: center;
    color: var(--ts-primary);
    margin-bottom: 45px !important;
    padding-right: 220px;
}
.tsc-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}
.tsc-inputs, .tsc-results {
    flex: 1;
    min-width: 320px;
    padding: 25px;
    border-radius: 18px;
    background: #ffffff !important;
}
.tsc-results {
    background: var(--ts-white);
    border: 2px solid var(--ts-light-gray);
    margin-top: 3.2em;
}
h4.tsc-sub-header {
    font-size: 1.4rem !important;
    font-weight: 700 !important;
    margin-bottom: 5px !important; 
    color: var(--ts-primary);
    border-bottom: 1px solid var(--ts-light-gray); 
    padding-bottom: 10px;
}
.tsc-sub-caption {
    display: block;
    font-size: 0.95rem;
    color: var(--ts-secondary);
    margin-bottom: 20px;
    font-weight: 500;
}
.tsc-control {
    margin-bottom: 22px;
}
.tsc-control label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ts-secondary);
}
.tsc-slider-container {
    display: flex;
    align-items: center;
    gap: 15px;
}
.tsc-slider-container input[type="range"] {
    flex-grow: 1;
    height: 8px;
    border-radius: 4px;
    background: var(--ts-light-gray);
    outline: none;
    -webkit-appearance: none;
}
.tsc-slider-container input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--ts-primary);
    cursor: pointer;
    border: 2px solid var(--ts-white);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.tsc-slider-container input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--ts-primary);
    cursor: pointer;
    border: 2px solid var(--ts-white);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.tsc-slider-value-display {
    min-width: 60px;
    text-align: center;
    font-weight: 700;
    color: var(--ts-primary);
    font-size: 1rem;
}
.tsc-calculator-wrapper .tsc-control input[type="text"],
.tsc-calculator-wrapper .tsc-control input[type="email"],
.tsc-calculator-wrapper .tsc-control input[type="url"],
.tsc-calculator-wrapper .tsc-control input[type="password"],
.tsc-calculator-wrapper .tsc-control input[type="search"],
.tsc-calculator-wrapper .tsc-control input[type="number"],
.tsc-calculator-wrapper .tsc-control input[type="tel"],
.tsc-calculator-wrapper .tsc-control input[type="date"],
.tsc-calculator-wrapper .tsc-control input[type="month"],
.tsc-calculator-wrapper .tsc-control input[type="week"],
.tsc-calculator-wrapper .tsc-control input[type="time"],
.tsc-calculator-wrapper .tsc-control input[type="datetime"],
.tsc-calculator-wrapper .tsc-control input[type="datetime-local"],
.tsc-calculator-wrapper .tsc-control input[type="color"],
.tsc-calculator-wrapper .tsc-control .site textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #f2f2f2 !important;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--ts-white) !important;
    color: var(--ts-text);
    box-shadow: none !important;
    outline: none !important;
}
.tsc-control input:focus {
    border-color: var(--ts-primary) !important;
    box-shadow: 0 0 0 3px rgba(84, 164, 116, 0.1) !important;
}
.tsc-calculator-wrapper table.tsc-table {
    width: 100%;
    border-collapse: collapse;
    border: none !important;
}
.tsc-calculator-wrapper .tsc-table td {
    padding: 12px 10px;
    border: none !important;
    border-bottom: 1px solid #E7E7E7 !important;
}
.tsc-table-3col thead th {
    padding: 10px;
    text-align: left;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ts-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--ts-primary) !important;
    border-top: none;
    border-left: none;
    border-right: none;
}
.tsc-table-3col thead th:nth-child(2),
.tsc-table-3col thead th:nth-child(3) {
    text-align: right;
    width: 25%;
}
.tsc-table-3col tbody td:first-child {
    font-weight: 500;
    color: var(--ts-text);
}
.tsc-table-3col tbody td:nth-child(2),
.tsc-table-3col tbody td:nth-child(3) {
    text-align: right;
    font-weight: 700;
    color: var(--ts-primary);
}
.tsc-table td:last-child {
    text-align: right;
    font-weight: 700;
    color: var(--ts-primary);
}
.tsc-calculator-wrapper .tsc-subtotal td {
    background: #f4f9f6 !important;
    color: var(--ts-text) !important;
    font-weight: 700 !important;
    border-top: 1px solid #E7E7E7 !important;
}
.tsc-section-header {
    background: var(--ts-primary);
    color: var(--ts-white);
    padding: 10px 15px;
    font-weight: 700;
    border-radius: 8px;
    margin: 25px 0 12px;
    font-size: 0.95rem;
}
.tsc-bars-container {
    margin: 20px 0;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 10px;
}
.tsc-bar-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ts-secondary);
}
.tsc-bar-wrapper {
    height: 24px;
    background: var(--ts-light-gray);
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
    position: relative;
}
.tsc-bar {
    height: 100%;
    border-radius: 12px;
    transition: width 0.5s ease;
    min-width: 0%;
}
.tsc-bar-indirect {
    background: rgba(84, 164, 116, 0.3);
}
.tsc-bar-direct {
    background: var(--ts-primary);
}
.tsc-bar-percentage {
    position: absolute;
    right: 10px;
    top: 0;
    height: 100%;
    display: flex;
    align-items: center;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--ts-text);
}
.tsc-grand-total {
    margin-top: 35px;
    padding: 30px;
    background: linear-gradient(135deg, var(--ts-primary) 0%, var(--ts-accent) 100%);
    color: var(--ts-white);
    border-radius: 15px;
    text-align: center;
}
.tsc-gt-label {
    display: block;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    opacity: 0.9;
}
.tsc-gt-value {
    font-size: 2.6rem;
    font-weight: 700;
}
.tsc-assumptions {
    margin-top: 50px;
    padding: 25px;
    background: #fcfcfc;
    border-left: 4px solid var(--ts-accent);
    border-radius: 0 12px 12px 0;
}
.tsc-assumptions h4 {
    font-size: 1.2rem !important;
    margin-bottom: 15px !important;
    color: var(--ts-secondary);
}
.tsc-assumptions ul {
    list-style: none;
    padding-left: 5px;
}
.tsc-assumptions li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: var(--ts-secondary);
}
.tsc-assumptions li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--ts-primary);
    font-weight: bold;
}
@media (max-width: 768px) {
    .tsc-grid { flex-direction: column; }
    .tsc-calculator-wrapper { padding: 20px; }
    .tsc-main-total-container {
        position: static;
        text-align: center;
        margin-bottom: 20px;
    }
    .tsc-boxes-wrapper {
        flex-direction: column;
        gap: 8px;
    }
    .tsc-box {
        min-width: 100%;
    }
    .tsc-title {
        padding-right: 0;
    }
    .tsc-table-3col thead th:nth-child(2),
    .tsc-table-3col thead th:nth-child(3) {
        width: 30%;
    }
}