:root {
    --brand-blue: #02aec6;
    --brand-blue-700: #038ca0;
    --brand-blue-50: #e8fbfd;
    --brand-green: #aeca21;
    --brand-green-700: #8ea914;
    --brand-green-50: #f5fadf;
    --app-bg: #f4f7fb;
    --surface: #ffffff;
    --surface-soft: #f8fafc;
    --border: #e6ebf1;
    --border-strong: #d6dee9;
    --text: #172033;
    --heading: #0f172a;
    --muted: #667085;
    --sidebar-width: 252px;
    --radius: 12px;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 12px 30px rgba(15, 23, 42, 0.07);
    --font-main: "Segoe UI", "Inter", "Helvetica Neue", Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    font-size: 14px;
    min-height: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font-main);
    background: var(--app-bg);
    color: var(--text);
    font-size: 13px;
    line-height: 1.45;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    color: inherit;
}

.app-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
}

.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    background: var(--surface);
    border-right: 1px solid var(--border);
    padding: 18px 14px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    box-shadow: 8px 0 24px rgba(15, 23, 42, 0.03);
    z-index: 20;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 54px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fbfc 100%);
}

.sidebar-logo {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 10px;
    background: #ffffff;
    border: 1px solid var(--border);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.sidebar-brand strong {
    display: block;
    color: var(--heading);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.1;
}

.sidebar-brand > span > span {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
}

.side-menu {
    display: flex;
    flex-direction: column;
    gap: 5px;
    overflow-y: auto;
    padding-right: 2px;
}

.sidebar-bottom {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.side-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 40px;
    padding: 9px 11px;
    border-radius: 10px;
    color: #516070;
    font-size: 13px;
    font-weight: 700;
    transition: background-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
    cursor: pointer;
}

.side-link:hover,
.side-link.active,
details.side-dropdown[open] > summary.side-link {
    background: var(--brand-blue-50);
    color: var(--brand-blue-700);
}

.side-link.active::before,
details.side-dropdown[open] > summary.side-link::before {
    content: "";
    position: absolute;
    left: -14px;
    top: 9px;
    bottom: 9px;
    width: 4px;
    border-radius: 0 6px 6px 0;
    background: var(--brand-green);
}

.side-icon {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: var(--brand-blue);
    background: #f3f8fa;
    font-size: 14px;
    line-height: 1;
}

.side-chevron {
    margin-left: auto;
    color: #98a2b3;
    font-size: 12px;
    transition: transform 0.16s ease;
}

details.side-dropdown summary {
    list-style: none;
}

details.side-dropdown summary::-webkit-details-marker {
    display: none;
}

details.side-dropdown[open] .side-chevron,
.ayarlar-details[open] .side-chevron {
    transform: rotate(90deg);
}

.dropdown-content {
    margin: 5px 0 8px 42px;
    padding-left: 10px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    border-left: 1px solid var(--border);
}

.dropdown-content .side-link {
    min-height: 32px;
    padding: 6px 9px;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 600;
}

.dropdown-content .side-icon {
    width: 8px;
    height: 8px;
    flex-basis: 8px;
    background: var(--brand-green);
    color: transparent;
    border-radius: 50%;
}

.main-area {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.topbar {
    position: sticky;
    top: 0;
    min-height: 66px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 0 24px;
    z-index: 15;
}

.topbar-search {
    width: min(440px, 42vw);
    min-height: 40px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface-soft);
    color: var(--muted);
}

.topbar-search input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
    font-size: 13px;
}

.topbar-search-filter {
    flex: 0 0 104px;
    width: 104px;
    border: 0;
    border-right: 1px solid var(--border);
    outline: 0;
    appearance: none;
    background-color: transparent;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23111827' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    color: var(--text);
    font-size: 12px;
    font-weight: 700;
    padding: 0 34px 0 0;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    margin-left: auto;
}

.user-dropdown {
    position: relative;
}

.user-dropdown summary {
    display: flex;
    align-items: center;
    gap: 10px;
    list-style: none;
    cursor: pointer;
    padding: 5px 7px;
    border-radius: 12px;
    transition: background-color 0.16s ease;
    min-width: 156px;
    justify-content: flex-end;
}

.user-dropdown summary:hover {
    background: var(--surface-soft);
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 11px;
    background: linear-gradient(135deg, var(--brand-blue), var(--brand-green));
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 12px;
}

.user-info strong {
    display: block;
    color: var(--heading);
    font-size: 13px;
    font-weight: 800;
    text-align: right;
}

.admin-symbol,
.admin-person-symbol {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-blue-700);
}

.admin-symbol {
    margin-right: 5px;
    font-size: 13px;
}

.admin-person-symbol {
    width: 24px;
    height: 24px;
    margin-right: 7px;
    border-radius: 8px;
    background: var(--brand-blue-50);
    border: 1px solid rgba(2, 174, 198, .24);
    font-size: 13px;
}

.crm-toast-stack {
    position: fixed;
    top: 82px;
    right: 24px;
    z-index: 3000;
    width: min(420px, calc(100vw - 32px));
    display: grid;
    gap: 10px;
    pointer-events: none;
}

.crm-toast {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    min-height: 54px;
    padding: 11px 14px;
    border: 1px solid #dbe3ee;
    border-left-width: 4px;
    border-radius: 8px;
    background: #ffffff;
    color: #172033;
    box-shadow: 0 14px 35px rgba(15, 23, 42, .14);
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity .22s ease, transform .22s ease;
    pointer-events: auto;
}

.crm-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.crm-toast.is-leaving {
    opacity: 0;
    transform: translateY(-8px);
}

.crm-toast-icon {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 16px;
}

.crm-toast-message {
    min-width: 0;
    color: #1f2937;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
}

.crm-toast-warning {
    border-left-color: #f59e0b;
}

.crm-toast-warning .crm-toast-icon {
    background: #fffbeb;
    color: #b45309;
}

.crm-toast-danger {
    border-left-color: #dc2626;
}

.crm-toast-danger .crm-toast-icon {
    background: #fef2f2;
    color: #b91c1c;
}

.crm-toast-info {
    border-left-color: var(--brand-blue);
}

.crm-toast-info .crm-toast-icon {
    background: var(--brand-blue-50);
    color: var(--brand-blue-700);
}

.crm-toast-success {
    border-left-color: #16a34a;
}

.crm-toast-success .crm-toast-icon {
    background: #f0fdf4;
    color: #15803d;
}

.user-info span {
    display: block;
    margin-top: 1px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
    text-align: right;
}

.user-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    min-width: 180px;
    padding: 7px;
    z-index: 50;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.user-dropdown-menu a {
    display: block;
    padding: 9px 10px;
    color: #344054;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
}

.user-dropdown-menu a:hover {
    background: var(--brand-blue-50);
    color: var(--brand-blue-700);
}

.content,
.page,
.page-content-wrapper,
.ayarlar-container,
.container-fluid {
    width: 100%;
    padding: 24px !important;
    margin: 0 !important;
}

.page-heading,
.page-header,
.ayarlar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px !important;
}

.page-heading h1,
.page-heading h2,
.page-heading h3,
.page-header h2,
.page-header h3,
.ayarlar-header h2,
.container-fluid h4 {
    margin: 0;
    color: var(--heading) !important;
    font-size: 22px !important;
    font-weight: 800 !important;
    letter-spacing: 0;
}

.page-heading p,
.ayarlar-header p {
    margin: 4px 0 0;
    color: var(--muted) !important;
    font-size: 13px !important;
}

.dashboard-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    margin-bottom: 20px;
}

.dashboard-title {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dashboard-title h1 {
    margin: 0;
    color: var(--heading);
    font-size: 24px;
    font-weight: 800;
}

.dashboard-title p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 18px;
}

.stat-card {
    min-height: 122px;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    display: grid;
    align-content: space-between;
    gap: 18px;
}

.stat-card-link,
.stat-card-link:hover,
.deal-row-link,
.deal-row-link:hover {
    color: inherit;
    text-decoration: none;
}

.stat-card-link,
.deal-row-link {
    cursor: pointer;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease, transform 0.16s ease;
}

.stat-card-link:hover,
.deal-row-link:hover {
    border-color: rgba(2, 174, 198, 0.35);
    background: #fbfdfe;
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.stat-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.stat-icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;
    border-radius: 14px;
    color: var(--brand-blue-700);
    background: var(--brand-blue-50);
    font-size: 18px;
    line-height: 1;
    margin-top: 0;
}

.stat-trend {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #16803d;
    background: #eaf8ef;
    border-radius: 999px;
    min-height: 34px;
    padding: 5px 11px;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    margin-top: 0;
    white-space: nowrap;
}

.stat-card strong {
    display: block;
    color: var(--heading);
    font-size: 23px;
    font-weight: 800;
    line-height: 1;
}

.stat-card > div:last-child > span {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 12.5px;
    font-weight: 600;
}

.workspace-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.85fr);
    gap: 18px;
}

.panel,
.card,
.ayarlar-card,
.login-card {
    background: var(--surface);
    border: 1px solid var(--border) !important;
    border-radius: var(--radius) !important;
    box-shadow: var(--shadow-sm) !important;
}

.panel,
.card,
.ayarlar-card {
    overflow: hidden;
    margin-bottom: 18px !important;
}

.card {
    padding: 0 !important;
}

.page-content-wrapper > .card,
.content > .card,
.container-fluid > .card {
    padding: 18px !important;
}

.card-body {
    padding: 18px !important;
}

.card-body.p-0 {
    padding: 0 !important;
}

.panel-header,
.card-header {
    min-height: 54px;
    padding: 14px 18px !important;
    border-bottom: 1px solid var(--border) !important;
    background: var(--surface) !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.panel-header h2,
.card-header,
.card-title {
    margin: 0;
    color: var(--heading) !important;
    font-size: 15px !important;
    font-weight: 800 !important;
}

.panel-header a {
    color: var(--brand-blue-700);
    font-size: 12px;
    font-weight: 800;
}

.deal-list {
    display: grid;
}

.deal-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
}

.deal-row:last-child {
    border-bottom: 0;
}

.deal-row strong {
    display: block;
    color: var(--heading);
    font-size: 13.5px;
    font-weight: 800;
}

.deal-row span {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
}

.deal-row small {
    display: block;
    margin-top: 5px;
    color: #7b8794;
    font-size: 11.5px;
    font-weight: 650;
}

.task-row-link {
    grid-template-columns: 1fr;
    padding-left: 0;
    padding-right: 0;
    border-radius: 10px;
}

.deal-empty {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 18px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 650;
}

.task-list {
    padding: 4px 18px 12px;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 26px;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 800;
}

.status-waiting {
    color: #946200;
    background: #fff5d6;
}

.status-approved {
    color: #13743b;
    background: #e8f7ee;
}

.status-revision {
    color: var(--brand-blue-700);
    background: var(--brand-blue-50);
}

.status-draft {
    color: #475467;
    background: #eef2f7;
}

.status-rejected {
    color: #b42318;
    background: #fff1f0;
}

.table-responsive {
    border-radius: var(--radius);
}

.table {
    width: 100%;
    margin-bottom: 0;
    color: #263445;
    vertical-align: middle;
    font-size: 13px;
}

.table th {
    padding: 13px 16px !important;
    color: #667085;
    background: #f8fafc;
    border-bottom: 1px solid var(--border) !important;
    font-size: 11.5px;
    font-weight: 800;
    text-transform: uppercase;
    white-space: nowrap;
}

.table td {
    padding: 13px 16px !important;
    border-color: var(--border) !important;
}

.table-hover tbody tr {
    transition: background-color 0.14s ease;
}

.table-hover tbody tr:hover {
    background: #f7fbfc;
}

.btn,
.primary-button,
.btn-edit-custom,
.btn-delete-custom,
.ayarlar-btn,
.login-button,
.btn-vade {
    border-radius: 10px !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    line-height: 1.35;
    transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.btn,
.btn-sm,
.primary-button {
    padding: 8px 13px !important;
}

.btn-primary,
.primary-button,
.btn-success {
    background: var(--brand-green) !important;
    border-color: var(--brand-green) !important;
    color: #ffffff !important;
}

.btn-primary:hover,
.primary-button:hover,
.btn-success:hover {
    background: var(--brand-green-700) !important;
    border-color: var(--brand-green-700) !important;
    color: #ffffff !important;
}

.btn-secondary,
.btn-delete-custom {
    background: var(--brand-blue) !important;
    border-color: var(--brand-blue) !important;
    color: #ffffff !important;
}

.btn-secondary:hover,
.btn-delete-custom:hover {
    background: var(--brand-blue-700) !important;
    border-color: var(--brand-blue-700) !important;
}

.btn-outline-secondary,
.btn-outline-primary,
.btn-outline-info {
    border-color: var(--border-strong) !important;
    color: #475467 !important;
    background: #ffffff !important;
}

.btn-outline-secondary:hover,
.btn-outline-primary:hover,
.btn-outline-info:hover {
    border-color: var(--brand-blue) !important;
    color: var(--brand-blue-700) !important;
    background: var(--brand-blue-50) !important;
}

.btn-edit-custom {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 11px !important;
    background: var(--brand-green);
    border: 1px solid var(--brand-green);
    color: #ffffff;
    text-decoration: none;
}

.btn-edit-custom:hover {
    background: var(--brand-green-700);
    border-color: var(--brand-green-700);
    color: #ffffff;
}

.btn-delete-custom {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 11px !important;
    text-decoration: none;
}

.badge {
    padding: 5px 8px !important;
    border-radius: 999px !important;
    font-size: 11.5px !important;
    font-weight: 800;
}

.form-section-row {
    display: grid !important;
    grid-template-columns: 190px minmax(0, 1fr);
    align-items: start;
    gap: 20px;
    padding: 16px 0 !important;
    border-bottom: 1px solid var(--border) !important;
}

.form-label-left {
    width: auto !important;
    min-width: 0 !important;
    padding-top: 8px !important;
    color: #667085 !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    letter-spacing: 0;
}

.form-content-right {
    min-width: 0;
}

.form-group {
    margin-bottom: 14px;
}

.form-group label,
.form-label,
.row label,
.col-form-label {
    color: #344054;
    font-size: 12.5px !important;
    font-weight: 800 !important;
}

.form-control,
.form-select,
.form-control-sm,
.form-select-sm,
.row input,
.row textarea,
.row select {
    height: auto !important;
    min-height: 38px !important;
    border: 1px solid #d6dee9 !important;
    border-radius: 10px !important;
    padding: 8px 11px !important;
    font-size: 13px !important;
    color: var(--text);
}

.form-control:focus,
.form-select:focus,
.form-check-input:focus,
.ts-wrapper.focus .ts-control {
    border-color: var(--brand-blue) !important;
    box-shadow: 0 0 0 0.16rem rgba(2, 174, 198, 0.16) !important;
}

.form-control:read-only,
.form-control:disabled,
.form-select:disabled {
    background: #f8fafc !important;
    color: #667085 !important;
}

textarea.form-control,
.row textarea {
    min-height: 82px !important;
}

.row {
    margin-bottom: 0;
}

.double {
    display: flex;
    gap: 18px;
}

.radio-group {
    display: flex;
    gap: 22px;
}

.input-group-joined {
    display: flex;
    width: 100%;
}

.input-group-joined .form-control:first-child {
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

.input-group-joined .form-control:last-child {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
    border-left: 0 !important;
}

.vade-btn-group {
    display: inline-flex;
    border: 1px solid var(--border-strong);
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff;
}

.vade-btn-group .btn-vade {
    border: 0;
    border-right: 1px solid var(--border);
    background: #ffffff;
    color: #475467;
    padding: 8px 14px !important;
}

.vade-btn-group .btn-vade:last-child {
    border-right: 0;
}

.vade-btn-group .btn-vade:hover {
    background: var(--brand-blue-50);
    color: var(--brand-blue-700);
}

.vade-btn-group .btn-vade.active {
    background: var(--brand-blue);
    color: #ffffff;
}

.select2-container {
    width: 100% !important;
}

.select2-container--default .select2-selection--single,
.ts-wrapper .ts-control {
    min-height: 38px !important;
    border: 1px solid #d6dee9 !important;
    border-radius: 10px !important;
    padding: 5px 11px !important;
    font-size: 13px !important;
    box-shadow: none !important;
}

.select2-container--default .select2-selection--single {
    display: flex !important;
    align-items: center !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 36px !important;
}

.items-table {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.items-table th {
    color: #667085 !important;
    background: #f8fafc !important;
}

.totals-box {
    width: min(360px, 100%) !important;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface-soft);
    font-size: 13px !important;
}

.totals-box .row-total {
    padding: 8px 0 !important;
    border-bottom: 1px solid var(--border) !important;
}

.modal-content {
    border: 1px solid var(--border) !important;
    border-radius: 16px !important;
    box-shadow: 0 22px 56px rgba(15, 23, 42, 0.18) !important;
}

.modal-header,
.modal-footer {
    padding: 13px 18px !important;
}

.modal-body {
    padding: 18px !important;
    font-size: 13px;
}

.modal-title {
    font-size: 15px !important;
    font-weight: 800 !important;
}

.modal-header-custom,
.modal-header-gradient {
    background: linear-gradient(135deg, var(--brand-blue), var(--brand-green)) !important;
    color: #ffffff !important;
}

.bg-light {
    background-color: var(--surface-soft) !important;
}

.text-primary {
    color: var(--brand-blue-700) !important;
}

.text-success {
    color: #16803d !important;
}

.shadow-sm,
.shadow {
    box-shadow: var(--shadow-sm) !important;
}

.modal-header-custom .btn-close,
.modal-header-gradient .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

.doviz-kutusu-animated {
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    min-height: 40px !important;
    padding: 0 12px !important;
    background: #ffffff !important;
    border: 1px solid var(--border) !important;
    border-radius: 12px !important;
    margin: 0 !important;
    font-family: Arial, sans-serif !important;
    box-shadow: var(--shadow-sm) !important;
    cursor: pointer !important;
    transition: border-color 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease !important;
}

.doviz-kutusu-animated:hover {
    border-color: var(--brand-blue) !important;
    background: var(--brand-blue-50) !important;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06) !important;
}

.doviz-card {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.doviz-badge {
    font-size: 10.5px !important;
    font-weight: 800 !important;
    color: var(--brand-blue-700) !important;
    background: var(--brand-blue-50) !important;
    border-radius: 999px !important;
    padding: 3px 6px !important;
}

.doviz-val {
    font-size: 12.5px !important;
    font-weight: 800 !important;
    color: var(--heading) !important;
    font-variant-numeric: tabular-nums !important;
}

.doviz-divider {
    width: 1px !important;
    height: 16px !important;
    background: var(--border-strong) !important;
}

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background:
        radial-gradient(circle at top left, rgba(2, 174, 198, 0.11), transparent 28rem),
        linear-gradient(180deg, #f7fafc 0%, #eef4f7 100%);
}

.login-card {
    width: 100%;
    max-width: 380px;
    padding: 32px !important;
    border-radius: 10px !important;
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08) !important;
}

.brand {
    text-align: center;
    margin-bottom: 24px;
}

.brand-logo {
    width: 72px;
    height: 72px;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 10px;
    background: #ffffff;
    border: 1px solid var(--border);
}

.brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 5px;
}

.brand h1 {
    margin: 0;
    color: var(--heading);
    font-size: 22px;
    font-weight: 800;
}

.brand p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.login-card .form-group {
    margin-bottom: 14px;
}

.login-card label {
    display: block;
    margin-bottom: 6px;
}

.login-card input,
.login-card select,
.login-card textarea {
    width: 100%;
    min-height: 42px;
    border: 1px solid #d6dee9;
    border-radius: 10px;
    padding: 9px 12px;
    color: var(--text);
    background: #ffffff;
    outline: 0;
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.login-card textarea {
    resize: vertical;
}

.login-card select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 24 24' fill='none' stroke='%23667085' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.login-card select:disabled {
    color: #98a2b3;
    background-color: #f3f6f9;
    cursor: not-allowed;
}

.login-card input:focus,
.login-card select:focus,
.login-card textarea:focus {
    border-color: var(--brand-blue);
    box-shadow: 0 0 0 0.16rem rgba(2, 174, 198, 0.16);
}

.validation-message {
    display: none;
    margin-top: 6px;
    color: #b42318;
    font-size: 12px;
    font-weight: 500;
}

.success-message {
    display: block;
    margin-bottom: 12px;
    padding: 9px 11px;
    border: 1px solid #b7e3c5;
    border-radius: 10px;
    color: #13743b;
    background: #e8f7ee;
    font-size: 12px;
    font-weight: 500;
}

.reset-validity {
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 500;
}

.reset-validity strong {
    color: var(--brand-blue-700);
}

.reset-timer {
    margin: 0 0 14px;
    padding: 10px 11px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface-soft);
}

.reset-timer-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 500;
}

.reset-timer-meta strong {
    color: var(--brand-blue-700);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.reset-timer-track {
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: #e9eef4;
}

.reset-timer-track span {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    background: var(--brand-green);
    transition: width 0.24s ease, background-color 0.16s ease;
}

.reset-timer.is-warning .reset-timer-meta strong {
    color: #946200;
}

.reset-timer.is-warning .reset-timer-track span {
    background: #f0b429;
}

.reset-timer.is-expired .reset-timer-meta strong {
    color: #b42318;
}

.reset-timer.is-expired .reset-timer-track span {
    background: #f04438;
}

.form-group.error .validation-message {
    display: block;
}

.form-group.error input {
    border-color: #f04438;
}

.form-group.error select,
.form-group.error textarea {
    border-color: #f04438;
}

.login-button {
    width: 100%;
    min-height: 42px;
    border: 0;
    background: var(--brand-green);
    color: #ffffff;
    cursor: pointer;
    margin-top: 6px;
    font-weight: 650 !important;
}

.login-button:hover {
    background: var(--brand-green-700);
}

.login-button:disabled {
    background: #cbd5df;
    color: #ffffff;
    cursor: not-allowed;
}

.register-link-button,
.register-back-link {
    width: 100%;
    min-height: 42px;
    margin-top: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-strong);
    border-radius: 10px;
    background: #ffffff;
    color: var(--brand-blue-700);
    font-size: 13px;
    font-weight: 650;
    text-decoration: none;
    transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.register-link-button:hover,
.register-back-link:hover {
    border-color: var(--brand-blue);
    background: var(--brand-blue-50);
    color: var(--brand-blue-700);
}

.register-page {
    align-items: flex-start;
    padding-top: clamp(20px, 4vh, 46px);
    padding-bottom: clamp(20px, 4vh, 46px);
}

.register-card {
    max-width: 720px;
}

.register-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 14px;
}

.register-span {
    grid-column: 1 / -1;
}

.validation-summary {
    display: block;
    margin-bottom: 12px;
    padding: 9px 11px;
    border: 1px solid #f4c7c3;
    border-radius: 10px;
    color: #b42318;
    background: #fff1f0;
    font-size: 12px;
    font-weight: 500;
}

.corporate-domain-input {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: stretch;
}

.corporate-domain-input span {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    padding: 9px 0 9px 12px;
    border: 1px solid #d6dee9;
    border-right: 0;
    border-radius: 10px 0 0 10px;
    background: #ffffff;
    color: var(--heading);
    font-size: 13px;
    font-weight: 650;
}

.corporate-domain-input input {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
    border-left: 0 !important;
    padding-left: 4px !important;
}

.form-group.error .corporate-domain-input span {
    border-color: #f04438;
}

.password-rules {
    display: grid;
    gap: 5px;
    margin-top: 8px;
}

.password-rules span {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #b42318;
    font-size: 12px;
    font-weight: 550;
    transition: color 0.16s ease;
}

.password-rules span::before {
    content: "";
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 50%;
    background: #f04438;
    transition: background-color 0.16s ease, transform 0.16s ease;
}

.password-rules span.is-valid {
    color: #16803d;
}

.password-rules span.is-valid::before {
    background: #16a34a;
    transform: scale(1.12);
}

.request-result-card {
    text-align: center;
}

.request-success-icon {
    width: 88px;
    height: 88px;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.request-success-icon svg {
    width: 88px;
    height: 88px;
    overflow: visible;
}

.request-success-icon circle {
    fill: #f0fdf4;
    stroke: var(--brand-green);
    stroke-width: 4;
    stroke-dasharray: 195;
    stroke-dashoffset: 195;
    animation: requestCircleDraw 0.72s ease forwards;
}

.request-success-icon path {
    fill: none;
    stroke: var(--brand-blue-700);
    stroke-width: 5;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 42;
    stroke-dashoffset: 42;
    animation: requestCheckDraw 0.48s ease 0.52s forwards;
}

.request-result-copy {
    margin-bottom: 18px;
}

.request-result-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.approval-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background:
        radial-gradient(circle at top left, rgba(2, 174, 198, 0.12), transparent 28rem),
        radial-gradient(circle at bottom right, rgba(22, 163, 74, 0.10), transparent 24rem),
        linear-gradient(180deg, #f7fafc 0%, #eef4f7 100%);
}

.approval-card {
    position: relative;
    width: min(100%, 560px);
    overflow: hidden;
    padding: 30px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 22px 54px rgba(15, 23, 42, 0.12);
    animation: approvalCardIn 0.54s ease both;
}

.approval-ambient {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.approval-ambient span {
    position: absolute;
    width: 170px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, rgba(2, 174, 198, 0.36), transparent);
    animation: approvalLineFloat 5.6s ease-in-out infinite;
}

.approval-ambient span:nth-child(1) {
    top: 88px;
    left: -42px;
}

.approval-ambient span:nth-child(2) {
    top: 210px;
    right: -54px;
    animation-delay: 0.8s;
}

.approval-ambient span:nth-child(3) {
    bottom: 120px;
    left: 38px;
    animation-delay: 1.6s;
}

.approval-brand {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.approval-brand .brand-logo {
    width: 52px;
    height: 52px;
    margin: 0;
}

.approval-brand span,
.approval-brand strong {
    display: block;
}

.approval-brand span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 650;
}

.approval-brand strong {
    margin-top: 2px;
    color: var(--heading);
    font-size: 17px;
}

.approval-icon {
    position: relative;
    z-index: 1;
    width: 94px;
    height: 94px;
    margin: 4px auto 18px;
}

.approval-icon svg {
    width: 94px;
    height: 94px;
    overflow: visible;
}

.approval-icon circle {
    fill: #f0fdf4;
    stroke: var(--brand-green);
    stroke-width: 4;
    stroke-dasharray: 195;
    stroke-dashoffset: 195;
    animation: requestCircleDraw 0.72s ease forwards;
}

.approval-icon path {
    fill: none;
    stroke: var(--brand-blue-700);
    stroke-width: 5;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 52;
    stroke-dashoffset: 52;
    animation: requestCheckDraw 0.48s ease 0.52s forwards;
}

.approval-card.is-warning .approval-icon circle {
    fill: #fffbeb;
    stroke: #f59e0b;
}

.approval-card.is-error .approval-icon circle {
    fill: #fff1f0;
    stroke: #ef4444;
}

.approval-card.is-error .approval-icon path {
    stroke: #b42318;
}

.approval-copy {
    position: relative;
    z-index: 1;
    text-align: center;
}

.approval-copy h1 {
    margin: 0;
    color: var(--heading);
    font-size: 26px;
    font-weight: 800;
}

.approval-copy p {
    margin: 8px auto 0;
    max-width: 460px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.55;
}

.approval-details {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 10px;
    margin: 22px 0 0;
}

.approval-details div {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface-soft);
    animation: approvalDetailIn 0.42s ease both;
}

.approval-details div:nth-child(2) {
    animation-delay: 0.08s;
}

.approval-details div:nth-child(3) {
    animation-delay: 0.16s;
}

.approval-details dt {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.approval-details dd {
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
    color: var(--heading);
    font-size: 14px;
    font-weight: 750;
}

.approval-actions {
    position: relative;
    z-index: 1;
    margin-top: 22px;
}

.approval-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

@keyframes approvalCardIn {
    from {
        opacity: 0.92;
        transform: translateY(10px) scale(0.99);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes approvalDetailIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes approvalLineFloat {
    0%, 100% {
        transform: translateX(0);
        opacity: 0.35;
    }

    50% {
        transform: translateX(44px);
        opacity: 0.78;
    }
}

@media (max-width: 560px) {
    .approval-page {
        padding: 16px;
    }

    .approval-card {
        padding: 24px 18px;
    }

    .approval-details div {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}

@keyframes requestCircleDraw {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes requestCheckDraw {
    to {
        stroke-dashoffset: 0;
    }
}

.login-links {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 15px;
    font-size: 13px;
}

.login-links a {
    color: var(--brand-blue-700);
    font-weight: 700;
}

.ayarlar-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    align-items: start;
}

.ayarlar-card {
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.ayarlar-card:hover {
    border-color: rgba(2, 174, 198, 0.35) !important;
    box-shadow: var(--shadow-md) !important;
}

.ayarlar-details {
    list-style: none;
}

.ayarlar-details summary {
    list-style: none;
    cursor: pointer;
    user-select: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 54px;
    padding: 14px 18px !important;
    color: var(--heading) !important;
    background: var(--surface) !important;
    border-bottom: 1px solid var(--border);
    font-weight: 800;
    font-size: 14px !important;
}

.ayarlar-details summary::-webkit-details-marker {
    display: none;
}

.ayarlar-details summary .side-icon {
    color: var(--brand-blue);
    background: var(--brand-blue-50);
}

.ayarlar-content {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: var(--surface);
}

.ayarlar-content + .ayarlar-content {
    padding-top: 0;
}

.ayarlar-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 42px;
    padding: 10px 12px !important;
    background: var(--surface-soft) !important;
    color: var(--text) !important;
    border: 1px solid var(--border);
    text-decoration: none;
}

.ayarlar-btn span {
    color: var(--text) !important;
    margin: 0 !important;
    font-weight: 700;
}

.ayarlar-btn:hover {
    background: var(--brand-blue-50) !important;
    border-color: var(--brand-blue);
    color: var(--brand-blue-700) !important;
}

.dropdown-menu {
    border: 1px solid var(--border) !important;
    border-radius: 12px !important;
    box-shadow: var(--shadow-md) !important;
    padding: 7px !important;
}

.dropdown-item {
    border-radius: 8px !important;
    font-size: 13px;
    font-weight: 600;
}

.teklif-table .clickable-row {
    cursor: pointer;
}

.teklif-table .clickable-row.row-focus-pulse {
    animation: rowFocusPulse 1.4s ease;
}

@keyframes rowFocusPulse {
    0%, 100% {
        background: transparent;
    }

    18%, 72% {
        background: #e8fbfd;
    }
}

.teklif-title {
    color: var(--heading);
    font-size: 13.5px;
    font-weight: 560;
    margin-bottom: 9px;
}

.offer-timeline {
    width: min(210px, 100%);
}

.offer-timeline-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 5px;
    color: var(--muted);
    font-size: 11px;
}

.offer-timeline-meta strong {
    color: #16803d;
    font-weight: 560;
    white-space: nowrap;
}

.offer-timeline.is-warning .offer-timeline-meta strong {
    color: #946200;
}

.offer-timeline.is-overdue .offer-timeline-meta strong {
    color: #b42318;
}

.offer-timeline-track {
    height: 7px;
    overflow: hidden;
    border-radius: 999px;
    background: #e9eef4;
}

.offer-timeline-track span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--brand-green);
}

.offer-timeline.is-warning .offer-timeline-track span {
    background: #f0b429;
}

.offer-timeline.is-overdue .offer-timeline-track span {
    background: #f04438;
}

.teklif-status-select {
    min-width: 142px;
    font-weight: 500 !important;
}

.table-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}

.icon-action {
    width: 32px;
    height: 32px;
    border: 1px solid var(--border);
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #475467;
    background: #ffffff;
    text-decoration: none;
    transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

button.icon-action {
    padding: 0;
}

.icon-action:hover {
    border-color: var(--brand-blue);
    background: var(--brand-blue-50);
    color: var(--brand-blue-700);
}

.icon-action.danger:hover {
    border-color: #f04438;
    background: #fff1f0;
    color: #b42318;
}

.message-last-note {
    margin-top: 5px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 500;
}

.message-context {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface-soft);
}

.message-context strong {
    color: var(--heading);
    font-weight: 560;
}

.message-context span {
    color: var(--muted);
    font-size: 12px;
    white-space: nowrap;
}

.message-history {
    min-height: 74px;
    margin-top: 12px;
}

.message-bubble,
.message-empty {
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #ffffff;
}

.message-bubble strong {
    display: block;
    color: var(--heading);
    font-weight: 560;
}

.message-bubble span {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 11px;
}

.message-bubble p {
    margin: 9px 0 0;
    color: var(--text);
}

.message-empty {
    color: var(--muted);
    font-size: 13px;
}

.detail-modal {
    overflow: hidden;
    border: 0 !important;
    border-radius: 16px !important;
    background: #ffffff;
}

.detail-modal-header {
    min-height: 72px;
    padding: 18px 22px !important;
    background: linear-gradient(135deg, #0f8fa3 0%, var(--brand-blue) 56%, #79a81c 100%) !important;
    border-bottom: 0 !important;
    color: #ffffff !important;
}

.detail-modal-header .modal-title {
    margin: 2px 0 0;
    color: #ffffff !important;
    font-size: 17px !important;
}

.detail-modal-kicker {
    display: block;
    color: rgba(255, 255, 255, 0.78);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.detail-modal-body {
    max-height: 72vh;
    overflow-y: auto;
    padding: 20px !important;
    background: #f6f8fb;
}

.detail-modal-footer {
    background: #ffffff;
    border-top: 1px solid var(--border);
}

.detail-modal-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.detail-section {
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #ffffff;
    box-shadow: var(--shadow-sm);
}

.detail-section-full {
    grid-column: 1 / -1;
}

.detail-section-financial {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 42px;
}

.detail-section-financial h6 {
    grid-column: 1 / -1;
}

.detail-section-financial .detail-field:nth-of-type(1),
.detail-section-financial .detail-field:nth-of-type(2) {
    border-top: 0;
}

.detail-section h6 {
    margin: 0 0 12px;
    color: var(--heading);
    font-size: 13px;
    font-weight: 800;
}

#teklifDetayModal .detail-modal-body > .row,
#teklifDetayModal .detail-modal-body > .mb-3 {
    margin: 0 0 14px !important;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #ffffff;
    box-shadow: var(--shadow-sm);
}

#teklifDetayModal .detail-modal-body > .row {
    row-gap: 14px;
}

#teklifDetayModal .detail-modal-body > hr {
    margin: 4px 0 14px;
    border-color: transparent;
}

#teklifDetayModal .detail-modal-body > h6 {
    margin: 0 0 10px;
    color: var(--heading);
    font-size: 13px;
    font-weight: 800;
}

.detail-field {
    display: grid;
    grid-template-columns: 128px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 10px 0;
    border-top: 1px solid var(--border);
}

.detail-field:first-of-type {
    border-top: 0;
}

.detail-field span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.detail-field strong {
    min-width: 0;
    color: var(--heading);
    font-size: 13px;
    font-weight: 650 !important;
    overflow-wrap: anywhere;
}

.detail-field-wide {
    grid-template-columns: 128px minmax(0, 1fr);
}

.detail-unit {
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface-soft);
}

.detail-unit + .detail-unit {
    margin-top: 10px;
}

.detail-unit-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--heading);
    font-weight: 800;
}

.detail-table {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #ffffff;
}

.detail-table th,
.detail-table td {
    border-color: var(--border) !important;
}

.detail-empty {
    padding: 12px;
    border: 1px dashed var(--border-strong);
    border-radius: 10px;
    color: var(--muted);
    background: #ffffff;
    font-size: 13px;
}

.message-history {
    max-height: 300px;
    overflow-y: auto;
    display: grid;
    gap: 10px;
}

.message-bubble {
    border-color: #dce5ee;
    box-shadow: var(--shadow-sm);
}

body,
.table,
.form-control,
.form-select,
.btn,
.side-link,
.dropdown-item {
    font-weight: 400 !important;
}

strong,
.fw-bold,
.card-title,
.panel-header h2,
.page-heading h1,
.page-heading h2,
.page-header h2,
.dashboard-title h1,
.brand h1,
.user-info strong {
    font-weight: 560 !important;
}

.profile-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: linear-gradient(135deg, #ffffff 0%, #f7fbfc 100%);
    box-shadow: var(--shadow-sm);
}

.profile-identity {
    display: flex;
    align-items: center;
    gap: 15px;
}

.profile-avatar {
    width: 58px;
    height: 58px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--brand-blue);
    color: #ffffff;
    font-size: 18px;
    font-weight: 650;
}

.profile-identity h1 {
    margin: 0;
    color: var(--heading);
    font-size: 23px;
    font-weight: 650;
}

.profile-identity p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.profile-grid,
.account-settings-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    gap: 18px;
    align-items: start;
}

.profile-detail-list,
.settings-list {
    display: grid;
    gap: 0;
}

.profile-detail-list > div,
.settings-row,
.settings-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--border);
}

.profile-detail-list > div:last-child,
.settings-row:last-child,
.settings-toggle:last-child {
    border-bottom: 0;
}

.profile-detail-list span,
.settings-row span,
.settings-toggle small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 12.5px;
    font-weight: 500;
}

.profile-detail-list strong,
.settings-row strong,
.settings-toggle strong {
    color: var(--heading);
    font-size: 13.5px;
    font-weight: 650;
}

.profile-inline-form {
    margin: 0;
}

.profile-edit-value {
    display: none;
    width: min(100%, 430px);
}

.profile-detail-list.is-editing .profile-read-value {
    display: none;
}

.profile-detail-list.is-editing .profile-edit-value {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
}

.profile-detail-list.is-editing .profile-edit-value.name-fields {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.profile-detail-list .form-control {
    height: 38px;
    border-radius: 8px;
    font-size: 13.5px;
}

.settings-row > i {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: var(--brand-blue-700);
    background: var(--brand-blue-50);
    font-size: 17px;
}

.profile-metric {
    padding: 18px;
    border-bottom: 1px solid var(--border);
}

.profile-metric p {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.profile-quick-actions {
    display: grid;
    gap: 8px;
    padding: 12px;
}

.profile-quick-actions a {
    min-height: 42px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface-soft);
    color: var(--text);
    font-weight: 650;
}

.profile-quick-actions a:hover {
    border-color: var(--brand-blue);
    background: var(--brand-blue-50);
    color: var(--brand-blue-700);
}

.settings-toggle input {
    width: 42px;
    height: 24px;
    flex: 0 0 42px;
    accent-color: var(--brand-blue);
    cursor: pointer;
}

.settings-form {
    margin: 0;
}

.settings-toggle {
    cursor: pointer;
    transition: background-color .18s ease, box-shadow .18s ease;
}

.settings-toggle:hover {
    background: var(--surface-soft);
}

.settings-alert {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 14px 18px 0;
    padding: 10px 12px;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    background: #f0fdf4;
    color: #166534;
    font-size: 13px;
    font-weight: 650;
}

.settings-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 18px;
    border-top: 1px solid var(--border);
    background: var(--surface-soft);
}

.settings-save-state {
    color: var(--muted);
    font-size: 12.5px;
    font-weight: 650;
}

.settings-save-state.is-dirty {
    color: #b45309;
}

.compact-crm .table > :not(caption) > * > * {
    padding-top: .42rem;
    padding-bottom: .42rem;
}

.compact-crm .form-control,
.compact-crm .form-select,
.compact-crm .btn {
    min-height: 34px;
    padding-top: .32rem;
    padding-bottom: .32rem;
    font-size: 13px;
}

.compact-crm .settings-row,
.compact-crm .settings-toggle,
.compact-crm .profile-detail-list > div {
    padding-top: 12px;
    padding-bottom: 12px;
}

body,
button,
input,
select,
textarea {
    font-family: var(--font-main) !important;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.side-link,
.btn,
.primary-button,
.btn-edit-custom,
.btn-delete-custom,
.ayarlar-btn,
.login-button,
.form-group label,
.form-label,
.row label,
.col-form-label,
.card-header,
.card-title,
.panel-header h2,
.modal-title,
.badge,
.status-pill,
.user-info strong,
.brand h1 {
    font-weight: 650 !important;
}

.dropdown-content .side-link,
.user-info span,
.brand p,
.dropdown-item {
    font-weight: 500 !important;
}

.modal .modal-content > .modal-header,
.modal .modal-content > .modal-header.modal-header-custom,
.modal .modal-content > .modal-header.modal-header-gradient,
.modal .modal-content > .modal-header.bg-light,
.modal .modal-content > .modal-header.bg-dark,
.modal .modal-content > .modal-header.bg-gradient {
    background: var(--brand-blue) !important;
    background-image: none !important;
    border-bottom-color: var(--brand-blue) !important;
    color: #ffffff !important;
}

.modal .modal-header .modal-title,
.modal .modal-header h1,
.modal .modal-header h2,
.modal .modal-header h3,
.modal .modal-header h4,
.modal .modal-header h5,
.modal .modal-header h6 {
    color: #ffffff !important;
    font-weight: 650 !important;
}

.modal .modal-header .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

body,
.table,
.form-control,
.form-select,
.dropdown-item,
.side-link {
    font-weight: 400 !important;
}

.btn,
.primary-button,
.btn-edit-custom,
.btn-delete-custom,
.ayarlar-btn,
.login-button,
.form-group label,
.form-label,
.row label,
.col-form-label,
.badge,
.status-pill {
    font-weight: 500 !important;
}

strong,
.fw-bold,
.card-title,
.panel-header h2,
.page-heading h1,
.page-heading h2,
.page-header h2,
.dashboard-title h1,
.modal-title,
.brand h1,
.user-info strong {
    font-weight: 560 !important;
}

.modal .modal-content.detail-modal > .modal-header.detail-modal-header {
    background: linear-gradient(135deg, #0f8fa3 0%, var(--brand-blue) 56%, #79a81c 100%) !important;
    border-bottom: 0 !important;
}

@media (max-width: 1180px) {
    .stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .workspace-grid,
    .ayarlar-grid,
    .profile-grid,
    .account-settings-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 980px) {
    .app-shell {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
        height: auto;
    }

    .side-menu {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dropdown-content {
        margin-left: 0;
    }
}

@media (max-width: 680px) {
    .topbar,
    .page-heading,
    .page-header,
    .ayarlar-header,
    .dashboard-hero {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: stretch;
        height: auto;
        padding: 16px;
    }

    .topbar-search {
        width: 100%;
    }

    .side-menu,
    .stat-grid,
    .workspace-grid,
    .detail-modal-grid,
    .detail-section-financial,
    .ayarlar-grid,
    .register-grid,
    .double {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .content,
    .page,
    .page-content-wrapper,
    .ayarlar-container,
    .container-fluid {
        padding: 16px !important;
    }

    .form-section-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .form-label-left {
        padding-top: 0 !important;
    }

    .detail-field,
    .detail-field-wide {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .detail-section-financial .detail-field:nth-of-type(2) {
        border-top: 1px solid var(--border);
    }
}
