/* PMO Responsive CSS Framework */

/* Base responsive grid system */
.pmo-container {
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
}

/* Responsive breakpoints */
/* Mobile first approach */
/* Small devices (phones, 576px and up) */
@media (min-width: 576px) {
  .pmo-container {
    max-width: 540px;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
  .pmo-container {
    max-width: 720px;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  .pmo-container {
    max-width: 960px;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .pmo-container {
    max-width: 1140px;
  }
}

/* Responsive grid */
.pmo-row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -15px;
  margin-left: -15px;
}

.pmo-col {
  position: relative;
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
}

/* Responsive columns */
.pmo-col-12 { flex: 0 0 100%; max-width: 100%; }
.pmo-col-11 { flex: 0 0 91.666667%; max-width: 91.666667%; }
.pmo-col-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
.pmo-col-9 { flex: 0 0 75%; max-width: 75%; }
.pmo-col-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
.pmo-col-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
.pmo-col-6 { flex: 0 0 50%; max-width: 50%; }
.pmo-col-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
.pmo-col-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
.pmo-col-3 { flex: 0 0 25%; max-width: 25%; }
.pmo-col-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
.pmo-col-1 { flex: 0 0 8.333333%; max-width: 8.333333%; }

/* Responsive column classes for different screen sizes */
@media (min-width: 576px) {
  .pmo-col-sm-12 { flex: 0 0 100%; max-width: 100%; }
  .pmo-col-sm-11 { flex: 0 0 91.666667%; max-width: 91.666667%; }
  .pmo-col-sm-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
  .pmo-col-sm-9 { flex: 0 0 75%; max-width: 75%; }
  .pmo-col-sm-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
  .pmo-col-sm-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
  .pmo-col-sm-6 { flex: 0 0 50%; max-width: 50%; }
  .pmo-col-sm-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
  .pmo-col-sm-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
  .pmo-col-sm-3 { flex: 0 0 25%; max-width: 25%; }
  .pmo-col-sm-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
  .pmo-col-sm-1 { flex: 0 0 8.333333%; max-width: 8.333333%; }
}

@media (min-width: 768px) {
  .pmo-col-md-12 { flex: 0 0 100%; max-width: 100%; }
  .pmo-col-md-11 { flex: 0 0 91.666667%; max-width: 91.666667%; }
  .pmo-col-md-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
  .pmo-col-md-9 { flex: 0 0 75%; max-width: 75%; }
  .pmo-col-md-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
  .pmo-col-md-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
  .pmo-col-md-6 { flex: 0 0 50%; max-width: 50%; }
  .pmo-col-md-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
  .pmo-col-md-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
  .pmo-col-md-3 { flex: 0 0 25%; max-width: 25%; }
  .pmo-col-md-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
  .pmo-col-md-1 { flex: 0 0 8.333333%; max-width: 8.333333%; }
}

@media (min-width: 992px) {
  .pmo-col-lg-12 { flex: 0 0 100%; max-width: 100%; }
  .pmo-col-lg-11 { flex: 0 0 91.666667%; max-width: 91.666667%; }
  .pmo-col-lg-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
  .pmo-col-lg-9 { flex: 0 0 75%; max-width: 75%; }
  .pmo-col-lg-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
  .pmo-col-lg-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
  .pmo-col-lg-6 { flex: 0 0 50%; max-width: 50%; }
  .pmo-col-lg-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
  .pmo-col-lg-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
  .pmo-col-lg-3 { flex: 0 0 25%; max-width: 25%; }
  .pmo-col-lg-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
  .pmo-col-lg-1 { flex: 0 0 8.333333%; max-width: 8.333333%; }
}

@media (min-width: 1200px) {
  .pmo-col-xl-12 { flex: 0 0 100%; max-width: 100%; }
  .pmo-col-xl-11 { flex: 0 0 91.666667%; max-width: 91.666667%; }
  .pmo-col-xl-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
  .pmo-col-xl-9 { flex: 0 0 75%; max-width: 75%; }
  .pmo-col-xl-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
  .pmo-col-xl-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
  .pmo-col-xl-6 { flex: 0 0 50%; max-width: 50%; }
  .pmo-col-xl-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
  .pmo-col-xl-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
  .pmo-col-xl-3 { flex: 0 0 25%; max-width: 25%; }
  .pmo-col-xl-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
  .pmo-col-xl-1 { flex: 0 0 8.333333%; max-width: 8.333333%; }
}

/* Responsive utilities */
.pmo-d-none { display: none !important; }
.pmo-d-block { display: block !important; }
.pmo-d-flex { display: flex !important; }

@media (min-width: 576px) {
  .pmo-d-sm-none { display: none !important; }
  .pmo-d-sm-block { display: block !important; }
  .pmo-d-sm-flex { display: flex !important; }
}

@media (min-width: 768px) {
  .pmo-d-md-none { display: none !important; }
  .pmo-d-md-block { display: block !important; }
  .pmo-d-md-flex { display: flex !important; }
}

@media (min-width: 992px) {
  .pmo-d-lg-none { display: none !important; }
  .pmo-d-lg-block { display: block !important; }
  .pmo-d-lg-flex { display: flex !important; }
}

@media (min-width: 1200px) {
  .pmo-d-xl-none { display: none !important; }
  .pmo-d-xl-block { display: block !important; }
  .pmo-d-xl-flex { display: flex !important; }
}

/* Responsive spacing utilities */
.pmo-m-0 { margin: 0 !important; }
.pmo-mt-0 { margin-top: 0 !important; }
.pmo-mr-0 { margin-right: 0 !important; }
.pmo-mb-0 { margin-bottom: 0 !important; }
.pmo-ml-0 { margin-left: 0 !important; }

.pmo-m-1 { margin: 0.25rem !important; }
.pmo-mt-1 { margin-top: 0.25rem !important; }
.pmo-mr-1 { margin-right: 0.25rem !important; }
.pmo-mb-1 { margin-bottom: 0.25rem !important; }
.pmo-ml-1 { margin-left: 0.25rem !important; }

.pmo-m-2 { margin: 0.5rem !important; }
.pmo-mt-2 { margin-top: 0.5rem !important; }
.pmo-mr-2 { margin-right: 0.5rem !important; }
.pmo-mb-2 { margin-bottom: 0.5rem !important; }
.pmo-ml-2 { margin-left: 0.5rem !important; }

.pmo-m-3 { margin: 1rem !important; }
.pmo-mt-3 { margin-top: 1rem !important; }
.pmo-mr-3 { margin-right: 1rem !important; }
.pmo-mb-3 { margin-bottom: 1rem !important; }
.pmo-ml-3 { margin-left: 1rem !important; }

.pmo-m-4 { margin: 1.5rem !important; }
.pmo-mt-4 { margin-top: 1.5rem !important; }
.pmo-mr-4 { margin-right: 1.5rem !important; }
.pmo-mb-4 { margin-bottom: 1.5rem !important; }
.pmo-ml-4 { margin-left: 1.5rem !important; }

.pmo-m-5 { margin: 3rem !important; }
.pmo-mt-5 { margin-top: 3rem !important; }
.pmo-mr-5 { margin-right: 3rem !important; }
.pmo-mb-5 { margin-bottom: 3rem !important; }
.pmo-ml-5 { margin-left: 3rem !important; }

.pmo-p-0 { padding: 0 !important; }
.pmo-pt-0 { padding-top: 0 !important; }
.pmo-pr-0 { padding-right: 0 !important; }
.pmo-pb-0 { padding-bottom: 0 !important; }
.pmo-pl-0 { padding-left: 0 !important; }

.pmo-p-1 { padding: 0.25rem !important; }
.pmo-pt-1 { padding-top: 0.25rem !important; }
.pmo-pr-1 { padding-right: 0.25rem !important; }
.pmo-pb-1 { padding-bottom: 0.25rem !important; }
.pmo-pl-1 { padding-left: 0.25rem !important; }

.pmo-p-2 { padding: 0.5rem !important; }
.pmo-pt-2 { padding-top: 0.5rem !important; }
.pmo-pr-2 { padding-right: 0.5rem !important; }
.pmo-pb-2 { padding-bottom: 0.5rem !important; }
.pmo-pl-2 { padding-left: 0.5rem !important; }

.pmo-p-3 { padding: 1rem !important; }
.pmo-pt-3 { padding-top: 1rem !important; }
.pmo-pr-3 { padding-right: 1rem !important; }
.pmo-pb-3 { padding-bottom: 1rem !important; }
.pmo-pl-3 { padding-left: 1rem !important; }

.pmo-p-4 { padding: 1.5rem !important; }
.pmo-pt-4 { padding-top: 1.5rem !important; }
.pmo-pr-4 { padding-right: 1.5rem !important; }
.pmo-pb-4 { padding-bottom: 1.5rem !important; }
.pmo-pl-4 { padding-left: 1.5rem !important; }

.pmo-p-5 { padding: 3rem !important; }
.pmo-pt-5 { padding-top: 3rem !important; }
.pmo-pr-5 { padding-right: 3rem !important; }
.pmo-pb-5 { padding-bottom: 3rem !important; }
.pmo-pl-5 { padding-left: 3rem !important; }

/* Responsive text utilities */
.pmo-text-left { text-align: left !important; }
.pmo-text-center { text-align: center !important; }
.pmo-text-right { text-align: right !important; }

@media (min-width: 576px) {
  .pmo-text-sm-left { text-align: left !important; }
  .pmo-text-sm-center { text-align: center !important; }
  .pmo-text-sm-right { text-align: right !important; }
}

@media (min-width: 768px) {
  .pmo-text-md-left { text-align: left !important; }
  .pmo-text-md-center { text-align: center !important; }
  .pmo-text-md-right { text-align: right !important; }
}

@media (min-width: 992px) {
  .pmo-text-lg-left { text-align: left !important; }
  .pmo-text-lg-center { text-align: center !important; }
  .pmo-text-lg-right { text-align: right !important; }
}

@media (min-width: 1200px) {
  .pmo-text-xl-left { text-align: left !important; }
  .pmo-text-xl-center { text-align: center !important; }
  .pmo-text-xl-right { text-align: right !important; }
}

/* Mobile-specific styles */
@media (max-width: 767.98px) {
  /* Adjust font sizes for mobile */
  h1, .h1 { font-size: 1.75rem !important; }
  h2, .h2 { font-size: 1.5rem !important; }
  h3, .h3 { font-size: 1.25rem !important; }
  h4, .h4 { font-size: 1.15rem !important; }
  h5, .h5 { font-size: 1.05rem !important; }
  h6, .h6 { font-size: 1rem !important; }
  
  /* Stack elements on mobile */
  .pmo-stack-on-mobile {
    display: block !important;
    width: 100% !important;
  }
  
  /* Adjust padding for mobile */
  .pmo-mobile-p-0 { padding: 0 !important; }
  .pmo-mobile-p-1 { padding: 0.25rem !important; }
  .pmo-mobile-p-2 { padding: 0.5rem !important; }
  
  /* Hide scrollbars but allow scrolling */
  .pmo-mobile-scroll {
    overflow-x: auto;
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
  }
  
  .pmo-mobile-scroll::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
  }
  
  /* Adjust buttons for mobile */
  .pmo-btn-mobile {
    display: block;
    width: 100%;
    margin-bottom: 0.5rem;
  }
  
  /* Mobile-friendly tables */
  .pmo-table-mobile {
    display: block;
    width: 100%;
    overflow-x: auto;
  }
  
  /* Mobile navigation adjustments */
  .pmo-nav-mobile {
    display: flex;
    flex-direction: column;
    width: 100%;
  }
  
  .pmo-nav-mobile-item {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(0,0,0,0.1);
  }
}

/* Tablet-specific styles */
@media (min-width: 768px) and (max-width: 991.98px) {
  /* Adjust for tablets */
  .pmo-tablet-p-3 { padding: 1rem !important; }
  
  /* Two-column layout for tablets */
  .pmo-tablet-col-2 {
    display: flex;
    flex-wrap: wrap;
  }
  
  .pmo-tablet-col-2 > * {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

/* Touch-friendly elements */
.pmo-touch-target {
  min-height: 44px;
  min-width: 44px;
}

/* Responsive card components */
.pmo-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  word-wrap: break-word;
  background-color: #fff;
  background-clip: border-box;
  border: 1px solid rgba(0,0,0,.125);
  border-radius: .25rem;
  margin-bottom: 1rem;
}

.pmo-card-body {
  flex: 1 1 auto;
  padding: 1.25rem;
}

.pmo-card-title {
  margin-bottom: .75rem;
}

.pmo-card-text {
  margin-bottom: 1rem;
}

/* Responsive form elements */
.pmo-form-group {
  margin-bottom: 1rem;
}

.pmo-form-control {
  display: block;
  width: 100%;
  padding: .375rem .75rem;
  font-size: 1rem;
  line-height: 1.5;
  color: #495057;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid #ced4da;
  border-radius: .25rem;
  transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;
}

@media (max-width: 767.98px) {
  .pmo-form-control {
    font-size: 16px; /* Prevents zoom on iOS */
  }
}

/* Responsive buttons */
.pmo-btn {
  display: inline-block;
  font-weight: 400;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  user-select: none;
  border: 1px solid transparent;
  padding: .375rem .75rem;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: .25rem;
  transition: color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;
}

@media (max-width: 767.98px) {
  .pmo-btn-block-sm {
    display: block;
    width: 100%;
  }
}

/* Responsive dashboard widgets */
.pmo-widget {
  margin-bottom: 1.5rem;
}

@media (max-width: 767.98px) {
  .pmo-widget {
    margin-bottom: 1rem;
  }
}

/* Responsive navigation */
.pmo-navbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: .5rem 1rem;
}

.pmo-navbar-nav {
  display: flex;
  flex-direction: column;
  padding-left: 0;
  margin-bottom: 0;
  list-style: none;
}

@media (min-width: 768px) {
  .pmo-navbar-nav {
    flex-direction: row;
  }
  
  .pmo-navbar-nav .pmo-nav-item {
    margin-right: .5rem;
  }
}

/* Responsive Kanban board */
.pmo-kanban-container {
  display: flex;
  overflow-x: auto;
  padding-bottom: 1rem;
}

.pmo-kanban-column {
  min-width: 280px;
  margin-right: 1rem;
  background-color: #f8f9fa;
  border-radius: .25rem;
  padding: 1rem;
}

@media (max-width: 767.98px) {
  .pmo-kanban-container {
    display: block;
    overflow-x: visible;
  }
  
  .pmo-kanban-column {
    min-width: auto;
    margin-right: 0;
    margin-bottom: 1rem;
  }
}

/* Responsive sprint burndown chart */
.pmo-chart-container {
  position: relative;
  width: 100%;
}

@media (max-width: 767.98px) {
  .pmo-chart-container {
    height: 200px;
  }
}

@media (min-width: 768px) {
  .pmo-chart-container {
    height: 300px;
  }
}

/* Accessibility improvements */
.pmo-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.pmo-focus-visible:focus {
  outline: 3px solid #4299e1;
  outline-offset: 2px;
}