/* ToolCurve Dashboard Styles */
.tc-dash-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    padding: 10px 20px;
    border-bottom: 2px solid #ddd;
    background-color: #fff;
    box-shadow: 0 .46875rem 2.1875rem rgba(4, 9, 20, .03), 0 .9375rem 1.40625rem rgba(4, 9, 20, .03), 0 .25rem .53125rem rgba(4, 9, 20, .05), 0 .125rem .1875rem rgba(4, 9, 20, .03);
}

.menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
}

.tc-dash-header .menu {
    margin-left: 300px;
}

.tc-dash-logo {
    margin-left: 80px;
}

/************************************************************************
01. All Pages
/************************************************************************/
html,
body {
    height: 100%;
}

body {
    margin: 0;
    padding: 0;
    color: #444444;
    font-size: 16px;
    text-align: left;
    overflow: hidden;
    line-height: normal;
    background-color: #F6F8FC;
    font-family: "Graphik Webfont", -apple-system, "Helvetica Neue", "Droid Sans", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    background-color: #fff;
}

body>div {
    width: 100%;
}

.clear {
    clear: both;
}




/************************************************************************
04. Page Elements
/************************************************************************/
.tc-dash-app {
    display: flex;
    flex-direction: column;
    height: 100vh;
    width: 100%;
    overflow: hidden;
}

.tc-dashboard-wrapper {
    display: flex;
    flex: 1;
    overflow: hidden;
    /* Prevent wrapper from scrolling */
    position: relative;
}

.tc-dashboard-main {
    width: 100%;
    overflow-y: auto;
    background-color: #f8fafc;
    padding: 40px;
    position: relative;
    height: calc(100vh - 64px);
    /* Account for header */
    left: 260px;
    width: calc(100% - 260px);
    transition: all 0.5s ease;
}

.sidebar.close~.tc-dashboard-main {
    left: 78px;
    width: calc(100% - 78px);
}

.tc-dashboard-main p {
    margin-bottom: 15px;
    font-weight: 400;
}

.tc-dashboard-main img {
    max-width: 100%;
    height: auto;
}

.tc-dash-content {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
}

/************************************************************************
04. DashboardTable Design
/************************************************************************/

.kt-cell-amazon .tc-stat {
    display: flex;
}

.amazon-link {
    width: 20px;
    height: 20px;
    margin-left: 15px;
    display: inline-block;
}
/* Action Icon Styles */
.action-icon {
    width: 18px;
    height: 18px;
    display: inline-block;
    fill: #999;
    cursor: pointer;
    transition: fill 0.2s ease;
}

.action-icon:hover {
    fill: #0073aa;
}

/* Meta Row Styles (OD/ID) */
.tc-meta-row {
    font-size: 13px;
    color: #444;
    line-height: 1.4;
}

.tc-meta-row .tc-label {
    color: #888;
    font-size: 12px;
    margin-right: 3px;
}

/* Center Actions Column in Product Table */
#product-performance-table .kt-cell-actions {
    justify-content: center;
}

/* Fix Actions Column Border Issue */
/* Override the default flex display from tables.css that causes collapsed borders */
#product-performance-table .kt-cell-actions {
    display: table-cell !important;
    vertical-align: middle !important;
    text-align: center !important;
}

/* Ensure the inner stat div centers content */
#product-performance-table .kt-cell-actions .tc-stat {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

/* Filter Row Layout Refinement */
.tc-filters-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 15px;
}

.tc-dashboard-filter-form {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

/* Enhanced Columns Button Styling */
.tc-columns-btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background-color: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    color: #374151;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.tc-columns-btn:hover {
    background-color: #f9fafb;
    border-color: #d1d5db;
}

.tc-columns-btn svg {
    margin-right: 8px;
    width: 16px;
    height: 16px;
    fill: #6b7280;
}

/* Columns Dropdown Grid Styling */
.tc-columns-dropdown {
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 8px;
    background-color: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    padding: 12px;
    z-index: 50;
    min-width: 250px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

/* Grid Layout for toggle items */
.tc-col-option {
    display: flex;
    align-items: center;
    padding: 6px 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.15s;
}

.tc-col-option:hover {
    background-color: #f3f4f6;
}

.tc-col-option input[type="checkbox"] {
    margin-right: 10px;
    accent-color: #2563eb;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.tc-col-option .label-text {
    font-size: 14px;
    color: #374151;
    font-weight: 500;
}

/* Fix Dropdown Positioning: Ensure parent is relative */
.tc-column-toggle {
    position: relative !important;
    display: inline-block;
}

/* Adjust Dropdown Spacing */
.tc-columns-dropdown {
    margin-top: 5px; /* Bring it slightly closer */
    gap: 12px; /* Increase gap between items as requested */
}
