/* ==============================================
   WRAPPER
================================================= */
.fagron-scripts-wrapper {
    padding: 20px;
    color: #222;
    font-family: "Inter", sans-serif;
}

/* ==============================================
   HEADER
================================================= */
.fagron-header h2 {
    margin: 0 0 20px;
    font-size: 26px;
    font-weight: 600;
    color: #111;
}

/* ==============================================
   FILTER BAR
================================================= */
.fagron-filters {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    background: #ffffff;
    border: 1px solid #ddd;
    padding: 14px 18px;
    border-radius: 6px;
    margin-bottom: 20px;
    gap: 12px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}

.fagron-filters-left,
.fagron-filters-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.fagron-filters-left label {
    font-size: 14px;
    color: #444;
    margin-right: 5px;
}

/* Dropdowns */
.fagron-filters select {
    padding: 7px 10px;
    background: #fff;
    border: 1px solid #ccc;
    color: #222;
    border-radius: 4px;
    font-size: 13px;
    min-width: 80px;
}

/* Search input */
#fagron-search {
    padding: 8px 12px;
    width: 260px;
    font-size: 14px;
    background: #fff;
    color: #222;
    border: 1px solid #ccc;
    border-radius: 6px;
    transition: 0.2s;
}

#fagron-search:focus {
    border-color: #d64020;
    background: #fff;
    outline: none;
}

/* Date labels */
.date-label {
    font-size: 13px;
    color: #555;
}

.date-label input {
    padding: 7px 10px;
    background: #fff;
    color: #222;
    border: 1px solid #ccc;
    border-radius: 5px;
    width: 130px;
}

/* ==============================================
   BUTTONS
================================================= */
.androlab-btn {
    background: #111;
    padding: 8px 12px;
    color: #fff;
    font-size: 13px;
    border-radius: 5px;
    border: 1px solid #222;
    cursor: pointer;
    transition: 0.2s;
    white-space: nowrap;
}

.androlab-btn:hover {
    background: #d64020;
    border-color: #d64020;
}

/* ==============================================
   TABLE WRAPPER
================================================= */
.fagron-table-wrapper {
    overflow-x: auto;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
}

.fagron-scripts-table td {
    overflow: visible !important;
    position: relative;
}


/* Scrollbar */
.fagron-table-wrapper::-webkit-scrollbar {
    height: 8px;
}
.fagron-table-wrapper::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 8px;
}

/* ==============================================
   TABLE
================================================= */
.fagron-scripts-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    background: #fff;
}

.fagron-scripts-table th {
    background: #f5f5f5;
    color: #111;
    font-weight: 600;
    padding: 12px 10px;
    border-bottom: 1px solid #ddd;
    text-transform: uppercase;
    font-size: 12px;
}

.fagron-scripts-table td {
    padding: 12px 10px;
    border-bottom: 1px solid #eee;
    color: #333;
}

/* Zebra rows */
.fagron-scripts-table tr:nth-child(even) {
    background: #fafafa;
}

.fagron-scripts-table tr:hover {
    background: #f0f0f0 !important;
}

/* ==============================================
   ACTION BUTTONS IN TABLE — IMPROVED
================================================= */

.fagron-action-btn {
    background: #222;
    color: #fff;
    padding: 8px 14px;            /* wider buttons */
    border-radius: 5px;
    font-size: 12px;
    border: 1px solid #333;
    cursor: pointer;
    white-space: nowrap;
    transition: 0.2s;
    width: 90px;                 /* consistent width */
    text-align: center;
    display: block;              /* stack vertically */
}

/* Add spacing BETWEEN Script + Order */
.fagron-action-btn + .fagron-action-btn {
    margin-top: 6px;
}

/* Hover effect */
.fagron-action-btn:hover {
    background: #d64020;
    border-color: #d64020;
}


/* ==============================================
   ADDRESS EXPAND STYLING
================================================= */
.address-toggle {
    cursor: pointer;
    color: #d64020;
    font-size: 12px;
    transition: 0.2s;
}

.address-toggle:hover {
    color: #ff7858;
}

.address-panel {
    display: none;
    padding: 15px;
    background: #fafafa;
    border-top: 1px solid #ddd;
}

.address-panel div {
    margin-bottom: 8px;
    font-size: 13px;
    color: #444;
}

.address-panel strong {
    color: #111;
}

/* ==============================================
   TOOLTIP (Products + Shipping)
================================================= */

.tooltip {
    position: relative;
    cursor: help;
    color: #d64020;
    border-bottom: 1px dotted #d64020;
}

/* Tooltip box */
.tooltip:hover::after {
    content: attr(data-tip);
    white-space: pre-line;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 120%; /* below text */
    
    background: #000;
    color: #fff;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 12px;
    line-height: 1.45;

    min-width: 180px;
    max-width: 260px;

    z-index: 99999;
    box-shadow: 0 4px 14px rgba(0,0,0,0.4);
}


/* Tooltip arrow */
.tooltip:hover::before {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 110%;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid #000;
    z-index: 99999;
}


