body {
  font-size: 12px;
  font-family: Verdana, Geneva, sans-serif;
  background: linear-gradient(135deg, #e6eaf7 0%, #dbeafe 50%, #e0f2fe 100%);
  min-height: 100vh;
}

/* Spacing for white divs to separate them */
.bg-white {
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 1px solid #d1d5db;
}

/* Save/Update button - used throughout the app */
.btn-save {
  background-color: #15803d;
  color: white !important;
  font-size: 15px;
  font-weight: 500;
  padding: 10px 24px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  width: auto;
  min-width: 140px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  display: inline-block;
  margin: 0;
  text-align: center;
  line-height: 1.5;
}

.btn_primary {
  background-color: #15803d;
  color: white !important;
  font-size: 15px;
  font-weight: 500;
  padding: 10px 24px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  width: auto;
  min-width: 140px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  display: inline-block;
  margin: 0;
  text-align: center;
  line-height: 1.5;
}

.btn-save:hover {
  background-color: #16a34a;
  color: white !important;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  transform: translateY(-1px);
}

.btn_primary:hover {
  background-color: #16a34a;
  color: white !important;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  transform: translateY(-1px);
}

.btn-save:active {
  background-color: #14532d;
  color: white !important;
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.btn_primary:active {
  background-color: #14532d;
  color: white !important;
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.btn-save:visited {
  color: white !important;
}

.btn_primary:visited {
  color: white !important;
}

a {
  color: #26375E;
  text-decoration: none
}

a:visited {
  color: #26375E;
  text-decoration: none
}

a:hover {
  color: rgb(13, 127, 180);
  text-decoration: underline
}

input {
  font-size: 17px;
  padding: 5px;
  font-family: Arial, Helvetica, sans-serif
}

/* All number inputs (amounts) align right */
input[type="number"] {
  text-align: right !important;
}

textarea {
  font-size: 17px;
  padding: 5px;
  font-family: Arial, Helvetica, sans-serif
}

select {
  font-size: 17px;
  padding: 5px;
  background-color: #ffffff;
  font-family: Arial, Helvetica, sans-serif
}

.tdtitle {
  font-size: 12px;
  color: #454545;
  text-align: center;
  background-color: #E0E0E0
}

.leftTitle {
  font-size: 15px;
  color: #454545;
  background-color: #E0E0E0
}

.tdtitlesum {
  font-size: 13px;
  color: #486a8d;
  font-weight: bold;
  /*width:200px;*/
  background-color: #cfdae4;
}

.header {
  background-color: #eaebd2;
}

.table_header {
  background-color: #dbdbdb;
  text-align: center;
  font-size: 14px;
}

.table_topHeader {
  background-color: #818080;
  text-align: center;
  color: White;
  font-size: 14px;
  font-weight: bold;
  font-family: Arial, Helvetica, sans-serif;
}

#footerlink {
  display: none;
}

.t11 {
  font-size: 12px;
  font-family: Tahoma
}

.tables {
  border: 1px solid #486a8d;
  border-collapse: collapse;
  font-size: 14px;
}

.tables #vendor,
.tables #aitiologia {
  padding-right: 14px;
}

.tablesum {
  border: 1px solid #486a8d;
  border-collapse: collapse;

}

#datenow {
  display: none;
}

#menucheck {
  width: 320px;
  border: 1px solid #486a8d;
  border-collapse: collapse;
  background-color: #cfdae4;
  padding: 3px;
  color: #ffffff;
  margin-bottom: 15px;
  position: relative;
  left: 80px;
}

#menucheckesoda {
  width: 380px;
  border: 1px solid #486a8d;
  border-collapse: collapse;
  background-color: #cfdae4;
  padding: 3px;
  color: #ffffff;
  margin-bottom: 15px;
  position: relative;
  left: 80px;
}

a .menu1 {
  font-size: 12px;
  font-weight: bold;
  padding: 2px;
  color: #000000;
  text-decoration: none;
  float: left;
  margin-right: 20px;
  margin-left: 10px;
}

#selectmonth {
  display: none;
}

.v10 {
  font-family: Verdana, Geneva, sans-serif;
  font-size: 10px
}

.v11 {
  font-family: Verdana, Geneva, sans-serif;
  font-size: 11px
}

.v14 {
  font-family: Verdana, Geneva, sans-serif;
  font-size: 14px
}

.big {
  font-family: Verdana, Geneva, sans-serif;
  font-size: 20px
}

.whiteLink {
  color: White
}

.whiteLink:hover {
  color: White;
  text-decoration: none
}

.topLine {
  border-top: 2px solid rgb(37, 75, 104);
}

.pageTitle {
  text-align: center;
  font-size: 18px;
  margin: 10px
}

textarea {
  font-family: Arial;
  font-size: 13px;
  width: 98%
}

.submitButton {
  background-color: #1A6E0D;
  color: White;
  border: 0px;
  height: 44px
}

.formTable {
  background-color: #E0E0E0;
  padding: 12px;
  border: 1px solid #8C8C8C;
  border-radius: 5px;
  font-size: 15px
}


.topTable {
  background-color: #ffffff;
  border-bottom: 2px solid #B0B0B0;
  border-right: 2px solid #B0B0B0;
  margin-top: 8px;
  margin-bottom: 12px;
  font-size: 26px;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 500;
}


.amount {
  text-align: right
}

table {
  border-collapse: collapse;
}

.headerRow {
  background-color: #d8e5e7;
  font-weight: bold;
  text-align: center;
}

.bottomRow {
  background-color: #e5e5e5;
  font-weight: bold;
}


.ui-menu-item-alternate {
  background-color: red;
}


.ui-menu .ui-menu-item {
  font-size: 14px;
  background-color: #fff;
  border-bottom: 1px solid #ccc
}



.ui-autocomplete-group {
  font-weight: bold;
  padding: .2em .4em;
  margin: .8em 0 .2em;
  line-height: 1.5;
  color: #337ab7;

}

.ui-menu-item .ui-menu-item-wrapper:hover {
  background-color: blue;
}


.ui-menu-item .ui-state-active:hover {
  border: none;
  margin: 0px;
  background: none;
  background-color: none;

}


.ui-menu-item div.ui-state-active:hover {
  border: none;
  margin: 0px;
  background: none;
  background-color: blue;

}



div.firstLine {
  font-size: 13px;
  line-height: 16px;
  border: none;

}

span.secondLine {
  font-size: 13px;
  /*color: #BFC7C9;*/
  line-height: 14px;
  border: none;
}

.img-circle {
  border-radius: 50%;
  float: left;
  margin: 5px;
  margin-right: 10px;
  max-width: 30px;
  max-height: 30px;
}

/* Modern Menu Design - Material Gradient */
.menu {
  width: 100%;
  background: linear-gradient(to right, #1d4e81, #6786bb);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  height: 40px;
  position: sticky;
  top: 0;
  z-index: 1000;
  font-family: 'Roboto', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.menu ul {
  padding: 0;
  margin: 0;
  list-style-type: none;
}

/* Search bar in menu */
.menu #globalSearch::placeholder {
  color: #999;
}

.menu #globalSearch:focus {
  background: #fff;
  color: #333;
  outline: none;
  border-color: #1d4e81;
}

.menu #globalSearch:focus::placeholder {
  color: #999;
}

.menu li {
  float: left;
  position: relative;
}

/* Top level links */
.menu a,
.menu a:visited {
  display: block;
  font-size: 13px;
  text-decoration: none;
  color: #fff !important;
  padding: 0 15px;
  line-height: 40px;
  font-weight: 500;
  text-align: center;
  transition: background-color 0.2s ease;
  border: none;
  /* Removed old borders */
  width: auto;
  /* Allow auto width based on text */
  height: 40px;
}

/* Top level hover */
.menu a:hover,
.menu li:hover>a {
  background-color: rgba(255, 255, 255, 0.15);
  color: #fff;
}

/* Dropdown menu */
.menu ul ul {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  top: 40px;
  left: 0;
  width: 200px;
  /* Wider dropdown for better readability */
  background: #fff;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
  /* Removed transition, transform, and border-top */
}

/* Dropdown visibility on hover */
.menu li:hover>ul {
  visibility: visible;
  opacity: 1;
  /* Removed transform */
}

/* Dropdown list items - vertical stack */
.menu ul ul li {
  float: none;
  width: 100%;
}

/* Dropdown links */
.menu ul ul a,
.menu ul ul a:visited {
  color: #333 !important;
  background: transparent;
  height: auto;
  line-height: 1.4;
  padding: 8px 15px;
  /* Compact padding as requested */
  width: auto;
  text-align: left;
  font-weight: normal;
  border: none;
  display: block;
  border-bottom: 1px solid #f0f0f0;
}

/* Dropdown links hover */
.menu ul ul a:hover,
.menu ul ul li:hover>a {
  background-color: #f5f5f5;
  color: #1e3c72;
  /* Removed padding shift */
}

/* Remove last border in dropdown */
.menu ul ul li:last-child a {
  border-bottom: none;
}

/* Third level menu (if needed) */
.menu ul ul ul {
  top: 0;
  left: 100%;
  margin-top: -2px;
  /* Align with parent */
}

/* IE Hacks removed - not needed for modern browsers */
.menu table {
  border-collapse: collapse;
  padding: 0;
  margin: 0;
  position: absolute;
  top: 0;
  left: 0;
}

.customer {
  font-size: 13px;
  background-color: Green;
  width: 42px;
  color: White;
  padding: 2px 2px;
  float: left;
  text-align: center;
  margin-right: 5px
}

.vendor {
  font-size: 13px;
  background-color: rgb(199, 14, 1);
  width: 42px;
  color: White;
  padding: 2px 2px;
  float: left;
  text-align: center;
  margin-right: 5px
}

.eof {
  width: 500px;
  padding: 20px;
  border: 1px solid gray;
  background-color: #f3f3f3;
  text-align: center;
  margin: 40px auto;
  font-size: 14px;
  color: #000000;
}

.trcustnegative {
  background-color: #FFE0E0;
}

/* Transaction type colors - reusable classes */
.transaction-charge {
  color: #8B0000 !important;
  /* Dark red for charges (Χρέωση) */
  font-weight: 500;
}

.transaction-charge td {
  color: #8B0000 !important;
}

.transaction-credit {
  color: #006400 !important;
  /* Dark green for credits (Πίστωση) */
  font-weight: 500;
}

.transaction-credit td {
  color: #006400 !important;
}

.company-title {
  font-size: 24px;
  font-weight: bold;
  text-align: center;
  color: #000000;
}

/* Override Tailwind text-blue-600 with normal blue */
.text-blue-600 {
  color: #21417c !important;
}

/* Ensure visited links have the same color as normal links (for accounting software) */
/* Menu links are excluded - they have their own styling with !important */
a:visited {
  color: #21417c !important;
}

a.text-blue-600:visited {
  color: #21417c !important;
}

/* ============================================
   MATERIAL DESIGN DASHBOARD STYLES
   ============================================ */

/* Dashboard cards με Material elevation */
.bg-white.rounded-lg.shadow {
  background: white;
  border-radius: 0 !important;
  /* NO rounded corners */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1),
    0 4px 8px rgba(0, 0, 0, 0.05) !important;
  transition: box-shadow 0.3s;
  overflow: hidden;
}

.bg-white.rounded-lg.shadow:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15),
    0 8px 16px rgba(0, 0, 0, 0.1) !important;
}

/* Headers με background color και border */
.bg-white.rounded-lg.shadow h2 {
  background: linear-gradient(to bottom, #eceff4, #d3d8dc) !important;
  color: #1d4e81 !important;
  font-size: 16px !important;
  /* 1px μικρότερο από 16px */
  font-weight: 600;
  padding: 6px 10px !important;
  margin: 0 !important;
  border-bottom: 2px solid #1d4e81 !important;
}

.bg-white.rounded-lg.shadow h2 a {
  color: #1d4e81 !important;
  text-decoration: none;
}

/* Table styling για dashboard */
.bg-white.rounded-lg.shadow table {
  width: 100%;
  border-collapse: collapse;
}

.bg-white.rounded-lg.shadow thead {
  background-color: #f5f7fa;
  border-bottom: 2px solid #1d4e81;
}

.bg-white.rounded-lg.shadow th {
  padding: 10px 12px;
  font-weight: 600;
  color: #1d4e81;
  text-align: left;
}

.bg-white.rounded-lg.shadow td {
  padding: 10px 12px;
  border-bottom: 1px solid #e8eef3;
}

.bg-white.rounded-lg.shadow tbody tr:hover {
  background-color: #e4f0fe;
  transition: background-color 0.1s;
}

/* Total rows με accent */
.bg-white.rounded-lg.shadow .bg-blue-50,
.bg-white.rounded-lg.shadow tr.bg-blue-50 {
  background: linear-gradient(to right, #e8f0f7, #f0f5fa) !important;
  font-weight: 600;
  border-top: 2px solid #1d4e81;
}

.bg-white.rounded-lg.shadow .bg-blue-50 td {
  border-bottom: none !important;
}

/* Table headers με background */
.bg-white.rounded-lg.shadow .bg-gray-100,
.bg-white.rounded-lg.shadow thead.bg-gray-100 {
  background-color: #f5f7fa !important;
}

/* Quick actions buttons - no rounded corners */
.btn_primary {
  border-radius: 0 !important;
}

/* Charts containers - no rounded corners */
.bg-white.rounded-lg.shadow #monthly_balance_chart,
.bg-white.rounded-lg.shadow #daily_receipts_chart {
  border-radius: 0 !important;
}


/* Override rounded corners globally for dashboard */
.rounded-lg {
  border-radius: 0 !important;
}

/* === Employee Management Styles === */
.employee-form-title {
  text-align: center;
  font-size: 1.9em;
  font-weight: 600;
  color: #343a40;
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 1px solid #dee2e6;
}

.employee-form-modern {
  background: #ffffff;
  padding: 25px 30px;
  border-radius: 8px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.07);
  max-width: 1600px;
  width: 90vw;
  margin: 25px auto 40px auto;
}

.form-section {
  margin-bottom: 25px;
  padding: 20px;
  border: 1px solid #e9ecef;
  border-radius: 6px;
  background: #ffffff;
}

.form-section:last-of-type {
  margin-bottom: 15px;
}

.form-section legend,
.card-section h3 {
  font-size: 1.4em;
  color: #1d4e81;
  font-weight: 600;
  padding: 0;
  margin-left: 0;
  margin-bottom: 20px;
  border-bottom: 2px solid #1d4e81;
  padding-bottom: 8px;
  margin-top: 0;
}

.card-section h4 {
  color: #000000;
  margin-top: 20px;
  margin-bottom: 10px;
  font-size: 1.1em;
  font-weight: 500;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px 22px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label,
.details strong {
  font-weight: 500;
  font-size: 1.1em;
  color: #000000;
  display: block;
}

.details p {
  margin: 8px 0;
  font-size: 0.95em;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="number"],
.form-group input[type="date"],
.form-group select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  font-size: 1.1em;
  background-color: #fff;
  color: #000000;
  box-sizing: border-box;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-group input[type="date"] {
  min-height: calc(10px + 10px + 0.93em + 2px);
}

.form-group input[type="date"]:required:invalid::-webkit-datetime-edit {
  color: #666666;
}

.form-group input[type="number"]::-webkit-inner-spin-button,
.form-group input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.form-group input[type="number"] {
  -moz-appearance: textfield;
}

.form-group input:focus,
.form-group select:focus {
  border-color: #1d4e81;
  background-color: #fff;
  outline: none;
  box-shadow: 0 0 0 0.2rem rgba(29, 78, 129, .25);
}

.form-group input::placeholder {
  color: #666666;
}

.submit-wrapper {
  text-align: center;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #e0e6ed;
}

.employee-action-btn.big {
  background-color: #3498db;
  color: white !important;
  font-size: 1.2em;
  padding: 13px 32px;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
  font-weight: 500;
}

.employee-action-btn.big:hover {
  background-color: #2980b9;
  color: white !important;
}

.employee-action-btn.big:active {
  transform: translateY(1px);
  color: white !important;
}

.employee-action-btn.big:visited {
  color: white !important;
}

.tab-container {
  margin-top: 20px;
}

.tab-nav {
  overflow: hidden;
  border-bottom: 1px solid #d2d6dc;
  margin-bottom: -1px;
}

.tab-nav button {
  background-color: transparent;
  float: left;
  border: 1px solid transparent;
  border-bottom: none;
  outline: none;
  cursor: pointer;
  padding: 10px 16px;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  font-size: 0.95em;
  margin-right: 4px;
  border-radius: 5px 5px 0 0;
  color: #4A5568;
}

.tab-nav button:hover {
  background-color: #f3f4f6;
  color: #2980b9;
}

.tab-nav button.active {
  background-color: #fff;
  border-color: #d2d6dc #d2d6dc transparent #d2d6dc;
  color: #3498db;
  font-weight: 600;
}

.tab-content {
  display: none;
  padding: 20px 25px;
  border: 1px solid #d2d6dc;
  background-color: #fff;
  border-radius: 0 6px 6px 6px;
}

.tab-content .card-section {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
  padding-left: 0;
  padding-right: 0;
}

.tab-content .card-section:first-child {
  padding-top: 0;
}

.tab-content .card-section h3 {
  margin-top: 0;
  font-size: 1.2em;
}

.employee-list-table {
  margin: 30px auto 0 auto;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  font-size: 0.95em;
  table-layout: fixed;
}

.employee-list-table thead th {
  position: sticky;
  top: 0;
  background: #f5f7fa;
  color: #333;
  font-weight: 600;
  padding: 12px 10px;
  border-bottom: 2px solid #e0e0e0;
  z-index: 2;
  text-align: left;
}

.employee-list-table th:nth-child(1),
.employee-list-table td:nth-child(1) {
  width: 18%;
}

.employee-list-table th:nth-child(2),
.employee-list-table td:nth-child(2) {
  width: 15%;
}

.employee-list-table th:nth-child(3),
.employee-list-table td:nth-child(3) {
  width: 15%;
}

.employee-list-table th:nth-child(4),
.employee-list-table td:nth-child(4) {
  width: 12%;
}

.employee-list-table th:nth-child(5),
.employee-list-table td:nth-child(5) {
  width: 25%;
}

.employee-list-table th:nth-child(6),
.employee-list-table td:nth-child(6) {
  width: 15%;
}

.employee-list-table tbody tr {
  transition: background 0.18s;
}

.employee-list-table tbody tr:nth-child(even) {
  background: #f8fafc;
}

.employee-list-table tbody tr:hover {
  background: #eaf3fb;
}

.employee-list-table td {
  padding: 10px 8px;
  border-bottom: 1px solid #f0f0f0;
  color: #222;
  vertical-align: middle;
  font-size: 0.9em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.employee-list-table td:nth-child(5) {
  white-space: normal;
  word-break: break-all;
}

.employee-list-table tr:last-child td {
  border-bottom: none;
}

.employee-list-table a {
  color: #1d4e81;
  text-decoration: none;
  font-weight: 500;
}

.employee-list-table a:hover {
  color: #0056b3;
  text-decoration: underline;
}

.employee-action-btn {
  color: #1d4e81;
  text-decoration: none;
  font-weight: 500;
  padding: 8px 16px;
  border: 1px solid #1d4e81;
  border-radius: 4px;
  display: inline-block;
  transition: all 0.2s ease;
}

.employee-action-btn:hover {
  background-color: #1d4e81;
  color: white !important;
  text-decoration: none;
}

.employee-action-btn:visited {
  color: #1d4e81;
}

.employee-action-btn:visited:hover {
  color: white !important;
}

.employee-actions {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  align-items: center;
}

.employee-actions>div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.employee-actions label {
  font-weight: 500;
  color: #000000;
  margin: 0;
}

.employee-card {
  background: #ffffff;
  padding: 25px 30px;
  border-radius: 8px;
  width: 100%;
  max-width: 2000px;
  margin: 20px auto;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.employee-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 1px solid #e0e6ed;
}

.employee-header h1 {
  margin: 0;
  font-size: 1.9em;
  color: #343a40;
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 15px;
}

.details {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.details strong {
  color: #000000;
  font-size: 0.9em;
  font-weight: 600;
}

.details p {
  margin: 0;
  color: #000000;
  font-size: 1em;
}

.card-section {
  margin-bottom: 25px;
  padding: 20px;
  border: 1px solid #e9ecef;
  border-radius: 6px;
  background: #ffffff;
}

.employee-files-flex {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  width: 100%;
  margin-top: 10px;
}

.files-list-col {
  flex: 0 1 70%;
  min-width: 0;
}

.upload-form-col {
  flex: 0 1 30%;
  min-width: 260px;
  max-width: 400px;
}

.upload-form {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 6px;
  margin-bottom: 30px;
  border: 1px solid #e9ecef;
}

.upload-form .form-group {
  margin-bottom: 15px;
}

.upload-form label {
  display: block;
  margin-bottom: 5px;
  color: #000000;
  font-weight: 500;
}

.upload-form input[type="file"] {
  width: 100%;
  padding: 8px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  background: #fff;
}

.upload-form input[type="text"] {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ced4da;
  border-radius: 4px;
}

.files-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.files-table th,
.files-table td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #e9ecef;
}

.files-table th {
  background: #f8f9fa;
  font-weight: 600;
  color: #495057;
}

.files-table tr:last-child td {
  border-bottom: none;
}

.no-files {
  text-align: center;
  color: #666666;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 6px;
  border: 1px dashed #ced4da;
}

@media (max-width: 1100px) {
  .employee-files-flex {
    flex-direction: column;
    gap: 18px;
  }

  .files-list-col,
  .upload-form-col {
    flex: 1 1 100%;
    max-width: 100%;
    min-width: 0;
  }
}

@media (max-width: 768px) {
  .form-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .employee-form-modern {
    padding: 20px 20px;
  }

  .form-section {
    padding: 15px;
  }

  .employee-form-title {
    font-size: 1.6em;
    margin-bottom: 20px;
  }

  .employee-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .employee-actions {
    width: 100%;
  }

  .employee-action-btn {
    width: 100%;
    text-align: center;
  }

  .details-grid {
    grid-template-columns: 1fr;
  }

  .files-table {
    display: block;
    overflow-x: auto;
  }

  .upload-form {
    padding: 15px;
  }
}

@media (max-width: 700px) {

  .employee-list-table,
  .employee-list-table thead,
  .employee-list-table tbody,
  .employee-list-table th,
  .employee-list-table td,
  .employee-list-table tr {
    display: block;
    width: 100%;
  }

  .employee-list-table thead {
    display: none;
  }

  .employee-list-table tr {
    margin-bottom: 18px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    border-radius: 6px;
    background: #fff;
    padding: 10px 0;
  }

  .employee-list-table td {
    border: none;
    position: relative;
    padding-left: 48%;
    min-height: 38px;
    font-size: 1em;
    box-sizing: border-box;
  }

  .employee-list-table td:before {
    position: absolute;
    top: 12px;
    left: 16px;
    width: 45%;
    white-space: nowrap;
    font-weight: 600;
    color: #1d4e81;
    content: attr(data-label);
    font-size: 0.97em;
  }
}

/* Help sidebar */
[data-help-sidebar] {
  position: fixed;
  top: 72px;
  right: 0;
  width: 360px;
  height: calc(100vh - 90px);
  z-index: 1300;
  pointer-events: none;
}

[data-help-sidebar] .help-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  border-left: 1px solid #d1d5db;
  box-shadow: -6px 0 18px rgba(0, 0, 0, 0.15);
  transform: translateX(100%);
  transition: transform 0.25s ease;
  display: flex;
  flex-direction: column;
  pointer-events: auto;
}

[data-help-sidebar].is-open .help-panel {
  transform: translateX(0);
}

.help-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: linear-gradient(135deg, #1d4e81 0%, #274b7a 100%);
  color: #fff;
  font-weight: 600;
}

.help-panel-title {
  font-size: 14px;
}

.help-close {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
  padding: 4px 6px;
}

.help-panel-body {
  padding: 14px;
  overflow-y: auto;
  color: #0f172a;
  font-size: 14px;
  line-height: 1.5;
}

.help-panel-body ul {
  padding-left: 18px;
  margin: 0 0 12px 0;
  list-style: disc;
}

.help-panel-body li {
  margin-bottom: 6px;
}

 .help-icon-btn {
   background: linear-gradient(135deg, #1d4e81 0%, #2563eb 100%);
   color: #fff;
   border: none;
   width: 36px;
   height: 36px;
   border-radius: 50%;
   display: inline-flex;
   align-items: center;
   justify-content: center;
   font-size: 18px;
   cursor: pointer;
   box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
   transition: all 0.2s ease;
   padding: 0;
 }
 
 .help-icon-btn:hover {
   filter: brightness(1.1);
   box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
   transform: translateY(-1px);
 }
 
 .help-icon-btn:active {
   transform: translateY(0);
   box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
 }
 
 .help-icon-btn:focus {
   outline: 2px solid #bfdbfe;
   outline-offset: 2px;
 }

.help-icon-btn i {
  font-weight: 400 !important;
  font-size: 18px;
}

[data-help-overlay] {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.18);
  z-index: 1290;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

[data-help-overlay].is-visible {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 960px) {
  [data-help-sidebar] {
    width: 280px;
  }
}

/* Generic section titles */
.section-title {
  margin: 0 0 12px 0;
  font-size: 14px;
  font-weight: 600;
  color: #26375e;
  border-bottom: 2px solid #26375e;
  padding-bottom: 6px;
}

.section-title a {
  color: inherit;
  text-decoration: none;
  font-weight: inherit;
  display: inline-block;
}

.section-title a:hover {
  text-decoration: underline;
}

.editable-field {
  cursor: pointer;
  border-bottom: 1px dashed #cbd5e1;
}

.editable-field:hover {
  background-color: #f8fafc;
}

.editable-input {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 4px 6px;
  font-size: 14px;
  font-family: inherit;
  box-sizing: border-box;
}