/* ====================================================================
   ARBIDOT - Legacy ASP.NET Web Application Stylesheet
   Classic Microsoft WebForms & GridView Design System
   ==================================================================== */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #f4f6f9;
    color: #222222;
    font-family: "Segoe UI", Tahoma, Arial, Verdana, sans-serif;
    font-size: 13px;
    line-height: 1.4;
}

/* Links */
a {
    color: #004488;
    text-decoration: underline;
}

a:hover {
    color: #002244;
    text-decoration: none;
}

/* Master Header (Classic ASP.NET Blue Header) */
.asp-top-banner {
    background: linear-gradient(180deg, #1e4b7a 0%, #113359 100%);
    border-bottom: 2px solid #e0a800;
    color: #ffffff;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.asp-brand-title {
    font-size: 18px;
    font-weight: bold;
    letter-spacing: 0.5px;
    color: #ffffff;
}

.asp-brand-sub {
    font-size: 11px;
    color: #d0e0f0;
    margin-left: 8px;
}

.asp-user-panel {
    font-size: 11px;
    color: #dce6f1;
}

.asp-user-panel a {
    color: #ffde7a;
    font-weight: bold;
    text-decoration: none;
    margin-left: 6px;
}

.asp-user-panel a:hover {
    text-decoration: underline;
}

/* Classic Menu Bar */
.asp-menu-bar {
    background-color: #e4e9f0;
    border-bottom: 1px solid #b8c4d4;
    padding: 4px 16px;
    font-size: 12px;
}

.asp-menu-bar a {
    display: inline-block;
    padding: 3px 12px;
    color: #113359;
    text-decoration: none;
    font-weight: 600;
    border: 1px solid transparent;
}

.asp-menu-bar a:hover,
.asp-menu-bar a.active {
    background-color: #ffffff;
    border: 1px solid #b8c4d4;
    border-bottom-color: #ffffff;
    color: #003366;
}

/* Main Content Container */
.asp-container {
    max-width: 1240px;
    margin: 16px auto;
    padding: 0 16px;
}

/* Breadcrumb & Sub-header Bar */
.asp-breadcrumb {
    background-color: #ffffff;
    border: 1px solid #d4dbe4;
    padding: 6px 12px;
    margin-bottom: 12px;
    font-size: 11px;
    color: #555555;
}

.asp-breadcrumb a {
    color: #004488;
    text-decoration: none;
}

.asp-breadcrumb a:hover {
    text-decoration: underline;
}

/* Page Panel */
.asp-panel {
    background-color: #ffffff;
    border: 1px solid #c2cdd8;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    margin-bottom: 16px;
}

.asp-panel-header {
    background: linear-gradient(180deg, #f7f9fb 0%, #e9edf2 100%);
    border-bottom: 1px solid #c2cdd8;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.asp-panel-title {
    font-size: 14px;
    font-weight: bold;
    color: #113359;
}

.asp-panel-body {
    padding: 12px;
}

/* Classic ASP.NET GridView Table */
.asp-gridview {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #b8c4d4;
    font-size: 12px;
    background-color: #ffffff;
}

.asp-gridview th {
    background: linear-gradient(180deg, #27578a 0%, #1a3f69 100%);
    color: #ffffff;
    font-weight: bold;
    text-align: left;
    padding: 6px 8px;
    border: 1px solid #1a3f69;
    font-size: 11px;
    white-space: nowrap;
}

.asp-gridview th.text-right,
.asp-gridview td.text-right {
    text-align: right;
}

.asp-gridview th.text-center,
.asp-gridview td.text-center {
    text-align: center;
}

.asp-gridview td {
    padding: 5px 8px;
    border: 1px solid #dce2e9;
    color: #333333;
}

.asp-gridview tr:nth-child(even) td {
    background-color: #f7f9fb;
}

.asp-gridview tr:hover td {
    background-color: #fff9db !important;
}

/* Table Footer / Summary Row */
.asp-gridview tfoot td {
    background-color: #e9f0f8;
    font-weight: bold;
    border-top: 2px solid #1a3f69;
    border-bottom: 1px solid #b8c4d4;
    color: #113359;
    padding: 7px 8px;
}

/* Numerical formatting */
.num-cell {
    font-family: Consolas, "Courier New", monospace;
    font-size: 11.5px;
}

/* Profit & Loss Colors */
.profit {
    color: #007700;
    font-weight: 600;
}

.loss {
    color: #cc0000;
    font-weight: 600;
}

/* Pager Controls (ASP.NET GridView Pager) */
.asp-pager {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #f4f6f9;
    border: 1px solid #dce2e9;
    border-top: none;
    padding: 6px 12px;
    font-size: 11px;
    color: #555555;
}

.asp-pager-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.asp-pager-link {
    display: inline-block;
    padding: 2px 7px;
    border: 1px solid #b8c4d4;
    background-color: #ffffff;
    color: #004488;
    text-decoration: none;
    font-size: 11px;
}

.asp-pager-link:hover {
    background-color: #e9edf2;
    border-color: #8c9ea8;
}

.asp-pager-link.disabled {
    color: #999999;
    border-color: #dddddd;
    background-color: #f0f0f0;
    pointer-events: none;
}

.asp-pager-current {
    display: inline-block;
    padding: 2px 7px;
    border: 1px solid #1a3f69;
    background-color: #1a3f69;
    color: #ffffff;
    font-weight: bold;
    font-size: 11px;
}

/* Standard Buttons */
.asp-btn {
    display: inline-block;
    font-family: inherit;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border: 1px solid #999999;
    background: linear-gradient(180deg, #fcfcfc 0%, #e8e8e8 100%);
    color: #333333;
    text-decoration: none;
    cursor: pointer;
    border-radius: 2px;
}

.asp-btn:hover {
    background: linear-gradient(180deg, #f0f0f0 0%, #d8d8d8 100%);
    border-color: #777777;
    color: #111111;
}

.asp-btn-primary {
    background: linear-gradient(180deg, #2a5d91 0%, #173f6a 100%);
    border-color: #123356;
    color: #ffffff;
}

.asp-btn-primary:hover {
    background: linear-gradient(180deg, #336ea8 0%, #1e4c7d 100%);
    border-color: #0d2844;
    color: #ffffff;
}

/* Alert Boxes */
.asp-alert {
    padding: 8px 12px;
    margin-bottom: 12px;
    border: 1px solid transparent;
    font-size: 12px;
}

.asp-alert-danger {
    background-color: #fde8e8;
    border-color: #f8b4b4;
    color: #9b1c1c;
}

.asp-alert-success {
    background-color: #def7ec;
    border-color: #bcf0da;
    color: #03543f;
}

/* Footer */
.asp-footer {
    border-top: 1px solid #c2cdd8;
    background-color: #e9edf2;
    padding: 8px 16px;
    font-size: 11px;
    color: #666666;
    text-align: center;
    margin-top: 32px;
}

/* Login Box (Classic ASP.NET Style) */
.asp-login-wrapper {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.asp-login-card {
    width: 380px;
    background-color: #ffffff;
    border: 1px solid #b8c4d4;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.asp-login-header {
    background: linear-gradient(180deg, #27578a 0%, #1a3f69 100%);
    color: #ffffff;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: bold;
    border-bottom: 2px solid #e0a800;
}

.asp-login-body {
    padding: 18px;
}

.asp-form-group {
    margin-bottom: 14px;
}

.asp-form-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #333333;
    margin-bottom: 4px;
}

.asp-textbox {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid #b8c4d4;
    font-family: inherit;
    font-size: 12px;
    background-color: #ffffff;
    color: #222222;
}

.asp-textbox:focus {
    outline: none;
    border-color: #27578a;
    box-shadow: 0 0 3px rgba(39, 87, 138, 0.4);
}
